wok view elfutils/receipt @ rev 18449
newsbeuter: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 26 21:35:58 2015 +0200 (2015-09-26) |
parents | 79949949dbb8 |
children | 7e911016a644 |
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 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 CFLAGS="$CFLAGS -Wno-error"
27 ./configure \
28 --enable-thread-safety \
29 $CONFIGURE_ARGS &&
30 touch src/.deps/none_ld.Po &&
31 make -s && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/usr/bin
38 for i in elfcmp findtextrel unstrip; do
39 cp -a $install/usr/bin/$i $fs/usr/bin
40 done
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/lib/elfutils $fs/usr/lib
43 }