# SliTaz package receipt. PACKAGE="elfutils" VERSION="0.153" CATEGORY="development" SHORT_DESC="ELF object file access library." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://fedorahosted.org/elfutils/" # Note : use http mirror because https can't be access at elfutils compilation time # when cooking from scratch. WGET_URL="http://sourceware.org/$PACKAGE/ftp/$VERSION/$TARBALL" DEPENDS="glibc-base" BUILD_DEPENDS="wget m4 bzip2-dev liblzma-dev" # Rules to configure and make the package. compile_rules() { # Fix nm-snprintf-size CFLAGS="$CFLAGS -Wno-sizeof-pointer-memaccess" sed -i 's/run-strip-reloc.sh//' tests/Makefile* # Need cc -g ! ./configure $CONFIGURE_ARGS && make && 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 $_pkg/usr/bin/$i $fs/usr/bin done cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/lib/elfutils $fs/usr/lib }