wok-stable annotate elfutils/receipt @ rev 7873
Up: elfutils to 0.150.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 02 20:07:14 2011 +0000 (2011-01-02) |
parents | e09be8676c88 |
children | 98134ab06017 |
rev | line source |
---|---|
pascal@5942 | 1 # SliTaz package receipt. |
pascal@5942 | 2 |
pascal@5942 | 3 PACKAGE="elfutils" |
slaxemulator@7873 | 4 VERSION="0.150" |
pascal@5942 | 5 CATEGORY="development" |
pascal@5942 | 6 SHORT_DESC="ELF object file access library." |
pascal@5942 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
slaxemulator@6928 | 8 BUILD_DEPENDS="m4 zlib-dev" |
pascal@5942 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@5942 | 10 WEB_SITE="http://fedorahosted.org/elfutils/" |
slaxemulator@6928 | 11 WGET="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL" |
pascal@5942 | 12 |
pascal@5942 | 13 # Rules to configure and make the package. |
pascal@5942 | 14 compile_rules() |
pascal@5942 | 15 { |
slaxemulator@6928 | 16 |
slaxemulator@6928 | 17 # Download using real wget since the link is https and we need |
slaxemulator@6928 | 18 # --no-check-certificate that works |
slaxemulator@6928 | 19 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then |
slaxemulator@6928 | 20 tar xjf $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@6928 | 21 else |
slaxemulator@6928 | 22 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced |
slaxemulator@6928 | 23 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET" |
slaxemulator@6928 | 24 tar xjf $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@6928 | 25 fi |
slaxemulator@6928 | 26 |
pascal@5942 | 27 cd $src |
pascal@5942 | 28 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@5942 | 29 --mandir=/usr/share/man \ |
pascal@7440 | 30 $CONFIGURE_ARGS && make |
pascal@5942 | 31 make && |
slaxemulator@6931 | 32 make check && |
pascal@5942 | 33 make DESTDIR=$PWD/_pkg install |
pascal@5942 | 34 } |
pascal@5942 | 35 |
pascal@5942 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5942 | 37 genpkg_rules() |
pascal@5942 | 38 { |
pascal@5942 | 39 mkdir -p $fs/usr/lib $fs/usr/bin |
pascal@5942 | 40 for i in elfcmp findtextrel unstrip; do |
pascal@5942 | 41 cp -a $_pkg/usr/bin/$i $fs/usr/bin |
pascal@5942 | 42 done |
pascal@5942 | 43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pascal@5942 | 44 cp -a $_pkg/usr/lib/elfutils $fs/usr/lib |
pascal@5942 | 45 } |