SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "elfutils"

# SliTaz package receipt.

PACKAGE="elfutils"
VERSION="0.186"
CATEGORY="development"
SHORT_DESC="ELF object file access library."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://sourceware.org/elfutils/"
WGET_URL="https://sourceware.org/$PACKAGE/ftp/$VERSION/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="glibc-base"
BUILD_DEPENDS="bzip2-dev liblzma-dev zstd-dev"

# Handle multiarch compilation
case "$ARCH" in
    arm) BUILD_DEPENDS="bzip2-dev xz-dev" ;;
esac

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed '/tar/!d;s|.*utils-||;s|.tar.*||' | sed '$!d'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    CFLAGS="$CFLAGS -Wno-error"
    ./configure \
        --enable-thread-safety \
        --disable-libdebuginfod \
        --disable-debuginfod \
        --program-prefix= \
        $CONFIGURE_ARGS &&
    touch src/.deps/none_ld.Po &&
    make -s && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/bin
    for i in elfcmp findtextrel unstrip; do
        cp -a $install/usr/bin/$i $fs/usr/bin
    done
    cp -a $install/usr/lib/*.so* $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)