wok-6.x view elfutils/receipt @ rev 25375
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 30 08:30:06 2022 +0000 (2022-07-30) |
parents | c5db15c56bd6 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="elfutils"
4 VERSION="0.161"
5 CATEGORY="development"
6 SHORT_DESC="ELF object file access library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://fedorahosted.org/elfutils/"
11 WGET_URL="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="wget bzip2-dev liblzma-dev"
17 # Handle multiarch compilation
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="bzip2-dev xz-dev" ;;
20 esac
22 current_version()
23 {
24 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
25 sed '/tar/!d;s|.*utils-||;s|.tar.*||' | sed '$!d'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 cd $src
32 CFLAGS="$CFLAGS -Wno-error"
33 ./configure \
34 --enable-thread-safety \
35 $CONFIGURE_ARGS &&
36 touch src/.deps/none_ld.Po &&
37 make -s && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib $fs/usr/bin
44 for i in elfcmp findtextrel unstrip; do
45 cp -a $install/usr/bin/$i $fs/usr/bin
46 done
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/lib/elfutils $fs/usr/lib
49 }