wok annotate elfutils/receipt @ rev 24513

updated elfkickers (3.1 -> 3.2)
author Hans-G?nter Theisgen
date Mon Feb 21 10:48:33 2022 +0100 (2022-02-21)
parents c5db15c56bd6
children 15da8bede304
rev   line source
pascal@5942 1 # SliTaz package receipt.
pascal@5942 2
pascal@5942 3 PACKAGE="elfutils"
devl547@17581 4 VERSION="0.161"
pascal@5942 5 CATEGORY="development"
pascal@5942 6 SHORT_DESC="ELF object file access library."
pascal@5942 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@5942 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@8178 10 WEB_SITE="https://fedorahosted.org/elfutils/"
pascal@12757 11 WGET_URL="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL"
pankso@12831 12 HOST_ARCH="i486 arm"
slaxemulator@10576 13
pascal@11583 14 DEPENDS="glibc-base"
pascal@12757 15 BUILD_DEPENDS="wget bzip2-dev liblzma-dev"
pascal@5942 16
pankso@12831 17 # Handle multiarch compilation
pankso@12831 18 case "$ARCH" in
pankso@12914 19 arm) BUILD_DEPENDS="bzip2-dev xz-dev" ;;
pankso@12831 20 esac
pankso@12831 21
pascal@24069 22 current_version()
pascal@24069 23 {
pascal@24069 24 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24069 25 sed '/tar/!d;s|.*utils-||;s|.tar.*||' | sed '$!d'
pascal@24069 26 }
pascal@24069 27
pascal@5942 28 # Rules to configure and make the package.
pascal@5942 29 compile_rules()
pascal@5942 30 {
pascal@5942 31 cd $src
devl547@17584 32 CFLAGS="$CFLAGS -Wno-error"
devl547@17584 33 ./configure \
devl547@17584 34 --enable-thread-safety \
devl547@17584 35 $CONFIGURE_ARGS &&
devl547@17584 36 touch src/.deps/none_ld.Po &&
devl547@17584 37 make -s && make install
pascal@5942 38 }
pascal@5942 39
pascal@5942 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5942 41 genpkg_rules()
pascal@5942 42 {
pascal@5942 43 mkdir -p $fs/usr/lib $fs/usr/bin
pascal@5942 44 for i in elfcmp findtextrel unstrip; do
pankso@12831 45 cp -a $install/usr/bin/$i $fs/usr/bin
pascal@5942 46 done
pankso@12831 47 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12831 48 cp -a $install/usr/lib/elfutils $fs/usr/lib
pascal@5942 49 }