wok-current annotate elfutils/receipt @ rev 6928

Up: elfutils to 0.149. Fixed it to build in clean chroot. Fixed it also to download sources with real wget by since sources are on https host. So now elfutils can download its sources just fine.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Oct 22 22:36:22 2010 +0000 (2010-10-22)
parents 7a5a8b260812
children f51960fc2d7e
rev   line source
pascal@5942 1 # SliTaz package receipt.
pascal@5942 2
pascal@5942 3 PACKAGE="elfutils"
slaxemulator@6928 4 VERSION="0.149"
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@5942 30 $CONFIGURE_ARGS &&
pascal@5942 31 make &&
pascal@5942 32 make DESTDIR=$PWD/_pkg install
pascal@5942 33 }
pascal@5942 34
pascal@5942 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5942 36 genpkg_rules()
pascal@5942 37 {
pascal@5942 38 mkdir -p $fs/usr/lib $fs/usr/bin
pascal@5942 39 for i in elfcmp findtextrel unstrip; do
pascal@5942 40 cp -a $_pkg/usr/bin/$i $fs/usr/bin
pascal@5942 41 done
pascal@5942 42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@5942 43 cp -a $_pkg/usr/lib/elfutils $fs/usr/lib
pascal@5942 44 }