wok annotate bzip2/receipt @ rev 15523

Up: thunderbird-langpack-sv_SE (17.0.10esr)
author Dominique Corbex <domcox@slitaz.org>
date Tue Nov 19 22:24:34 2013 +0100 (2013-11-19)
parents 09524cdf6ae8
children 906854cfa70d
rev   line source
pankso@11 1 # SliTaz package receipt.
pankso@11 2
pankso@11 3 PACKAGE="bzip2"
slaxemulator@6376 4 VERSION="1.0.6"
pankso@211 5 CATEGORY="utilities"
pankso@11 6 SHORT_DESC="High-quality data compressor."
pankso@11 7 MAINTAINER="pankso@slitaz.org"
pascal@15474 8 LICENSE="BSD"
pankso@11 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@11 10 WEB_SITE="http://www.bzip.org/"
slaxemulator@5410 11 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
pankso@12815 12 TAGS="compression archive"
pankso@12815 13 HOST_ARCH="i486 arm"
pankso@12815 14
pascal@752 15 DEPENDS="bzlib"
pankso@12815 16 BUILD_DEPENDS=""
gokhlayeh@8174 17
pankso@11 18 # Rules to configure and make the package.
pankso@11 19 compile_rules()
pankso@11 20 {
pankso@11 21 cd $src
pankso@12815 22 # Disable the tests since they won't work on a multi-architecture build
pankso@12815 23 cp Makefile Makefile.orig
pankso@12815 24 sed -e "/^all:/s/ test//" Makefile.orig > Makefile
pankso@12815 25 # No configure script, we must used CC, AR and RANLIB set by cook.
pankso@12815 26 case "$ARCH" in
pankso@12815 27 arm)
pankso@12815 28 make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} &&
pankso@12815 29 make clean && make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;;
pankso@12815 30 *)
pankso@12815 31 make -f Makefile-libbz2_so &&
pankso@12815 32 make clean && make ;;
pankso@12815 33 esac
pankso@12815 34 }
pankso@12815 35
pankso@12815 36 # Just to be sure when cross-compiling.
pankso@12815 37 testsuite()
pankso@12815 38 {
pankso@12815 39 readelf -h $src/bzip2-shared
pankso@11 40 }
pankso@11 41
pankso@11 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@11 43 genpkg_rules()
pankso@11 44 {
pascal@752 45 mkdir -p $fs/usr/bin
pankso@11 46 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
pankso@11 47 # Da bunzip2, bzcat and lib symlink.
pankso@11 48 cd $fs/usr/bin
pankso@11 49 ln -s bzip2 bunzip2
pankso@11 50 ln -s bzip2 bzcat
pankso@11 51 }
pankso@11 52
rcx@3694 53 # Remove Busybox symlinks before installing
pankso@11 54 pre_install()
pankso@11 55 {
pankso@12815 56 echo "Processing post-install commands..."
pankso@12815 57 rm -f $root/usr/bin/bunzip2
pankso@12815 58 rm -f $root/usr/bin/bzcat
pankso@12815 59 #rm -f $root/usr/bin/bzip2
pankso@11 60 }
rcx@3694 61
rcx@3694 62 # Restore Busybox symlinks upon removal
rcx@3694 63 post_remove()
rcx@3694 64 {
rcx@3694 65 ln -s /bin/busybox /usr/bin/bunzip2
rcx@3694 66 ln -s /bin/busybox /usr/bin/bzcat
pankso@12815 67 #ln -s /bin/busybox /usr/bin/bzip2
rcx@3694 68 }