wok-current view elfutils/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago) |
parents | 3ad63c8fc2f9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="elfutils"
4 VERSION="0.186"
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://sourceware.org/elfutils/"
11 WGET_URL="https://sourceware.org/$PACKAGE/ftp/$VERSION/$TARBALL"
12 HOST_ARCH="i486 arm x86_64"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="bzip2-dev liblzma-dev zstd-dev"
17 # Handle multiarch compilation
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="bzip2-dev xz-dev" ;;
20 #x86_64) BUILD_DEPENDS="bzip2-dev liblzma-dev xz-dev" ;;
21 esac
23 current_version()
24 {
25 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
26 sed '/tar/!d;s|.*utils-||;s|.tar.*||' | sed '$!d'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 cd $src
33 CFLAGS="$CFLAGS -Wno-error"
34 ./configure \
35 --enable-thread-safety \
36 --disable-libdebuginfod \
37 --disable-debuginfod \
38 --program-prefix= \
39 $CONFIGURE_ARGS &&
40 touch src/.deps/none_ld.Po &&
41 make -s && make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib $fs/usr/bin
48 for i in elfcmp findtextrel unstrip; do
49 cp -a $install/usr/bin/$i $fs/usr/bin
50 done
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 }