wok view elfutils/receipt @ rev 10576

elfutils: Only install binutils when not installed and using cook. Don't added to bdeps since it will break tazwok cookorder.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed May 25 19:27:13 2011 +0000 (2011-05-25)
parents 129718f02808
children 3597a1f3cf89
line source
1 # SliTaz package receipt.
3 PACKAGE="elfutils"
4 VERSION="0.150"
5 CATEGORY="development"
6 SHORT_DESC="ELF object file access library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="https://fedorahosted.org/elfutils/"
10 # Note : use http mirror because https can't be access at elfutils compilation time
11 # when cooking from scratch.
12 #WGET_URL="http://cvs.fedoraproject.org/repo/pkgs/elfutils/$TARBALL/3dcfb28fa339090a1d29a9e148cce469/$TARBALL"
13 WGET_URL="http://gentoo.webm.ru/distfiles/$TARBALL"
15 DEPENDS="glibc-base elfutils"
16 #BUILD_DEPENDS="binutils"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 if [ -x /usr/bin/cook ]; then
23 [ -d "/var/lib/tazpkg/installed/binutils" ] || tazpkg get-install binutils
24 fi
25 ./configure $CONFIGURE_ARGS &&
26 make && make check && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib $fs/usr/bin
33 for i in elfcmp findtextrel unstrip; do
34 cp -a $_pkg/usr/bin/$i $fs/usr/bin
35 done
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/lib/elfutils $fs/usr/lib
38 }