SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "elfkickers"

# SliTaz package receipt.

PACKAGE="elfkickers"
VERSION="3.2"
CATEGORY="system-tools"
SHORT_DESC="Misc ELF linker format tools."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.muppetlabs.com/~breadbox/software/elfkickers.html"

SOURCE="ELFkickers"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="https://www.muppetlabs.com/~breadbox/pub/software/$TARBALL"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|.*asm/elf.h.*|#define ELF_DATA ELFDATA2LSB\n#define ELF_CLASS ELFCLASS32\n#define ELF_ARCH EM_386|' \
        sstrip/sstrip.c
    mkdir -p $DESTDIR/usr/bin
    for i in elfls rebind elftoc sstrip
      do
        cd $i
        make &&
        cp $i $DESTDIR/usr/bin
        cd ..
      done
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/*    $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)