wok-current view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="elfutils"
4 VERSION="0.149"
5 CATEGORY="development"
6 SHORT_DESC="ELF object file access library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 BUILD_DEPENDS="m4 zlib-dev"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://fedorahosted.org/elfutils/"
11 WGET="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
17 # Download using real wget since the link is https and we need
18 # --no-check-certificate that works
19 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
20 tar xjf $SOURCES_REPOSITORY/$TARBALL
21 else
22 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
23 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
24 tar xjf $SOURCES_REPOSITORY/$TARBALL
25 fi
27 cd $src
28 ./configure --prefix=/usr --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib $fs/usr/bin
39 for i in elfcmp findtextrel unstrip; do
40 cp -a $_pkg/usr/bin/$i $fs/usr/bin
41 done
42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
43 cp -a $_pkg/usr/lib/elfutils $fs/usr/lib
44 }