wok-current annotate elfutils/receipt @ rev 14032

gocr: use pnm2png, not pnmtopng
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 18 11:06:24 2013 +0100 (2013-02-18)
parents 2ce43b9c164d
children 380ffe05937a
rev   line source
pascal@5942 1 # SliTaz package receipt.
pascal@5942 2
pascal@5942 3 PACKAGE="elfutils"
pascal@12757 4 VERSION="0.153"
pascal@5942 5 CATEGORY="development"
pascal@5942 6 SHORT_DESC="ELF object file access library."
pascal@5942 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@5942 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@8178 9 WEB_SITE="https://fedorahosted.org/elfutils/"
pascal@12757 10 WGET_URL="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL"
pankso@12831 11 HOST_ARCH="i486 arm"
slaxemulator@10576 12
pascal@11583 13 DEPENDS="glibc-base"
pascal@12757 14 BUILD_DEPENDS="wget bzip2-dev liblzma-dev"
pascal@5942 15
pankso@12831 16 # Handle multiarch compilation
pankso@12831 17 case "$ARCH" in
pankso@12914 18 arm) BUILD_DEPENDS="bzip2-dev xz-dev" ;;
pankso@12831 19 esac
pankso@12831 20
pascal@5942 21 # Rules to configure and make the package.
pascal@5942 22 compile_rules()
pascal@5942 23 {
pascal@5942 24 cd $src
pascal@12757 25 sed -i 's/run-strip-reloc.sh//' tests/Makefile* # Need cc -g !
pankso@10027 26 ./configure $CONFIGURE_ARGS &&
pankso@12831 27 # Disable check/tests when cross-compiling
pankso@12831 28 case "$ARCH" in
pankso@12831 29 arm) make && make install ;;
pankso@12831 30 *) make && make check && make install ;;
pankso@12831 31 esac
pascal@5942 32 }
pascal@5942 33
pascal@5942 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5942 35 genpkg_rules()
pascal@5942 36 {
pascal@5942 37 mkdir -p $fs/usr/lib $fs/usr/bin
pascal@5942 38 for i in elfcmp findtextrel unstrip; do
pankso@12831 39 cp -a $install/usr/bin/$i $fs/usr/bin
pascal@5942 40 done
pankso@12831 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12831 42 cp -a $install/usr/lib/elfutils $fs/usr/lib
pascal@5942 43 }