wok-6.x annotate bzip2/receipt @ rev 13074

Up: activeresource to 3.2.6.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jun 25 08:35:57 2012 +0000 (2012-06-25)
parents 8bfd4fcfb42a
children c5285953bed2
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"
pankso@11 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@11 9 WEB_SITE="http://www.bzip.org/"
slaxemulator@5410 10 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
pankso@12815 11 TAGS="compression archive"
pankso@12815 12 HOST_ARCH="i486 arm"
pankso@12815 13
pascal@752 14 DEPENDS="bzlib"
pankso@12815 15 BUILD_DEPENDS=""
gokhlayeh@8174 16
pankso@11 17 # Rules to configure and make the package.
pankso@11 18 compile_rules()
pankso@11 19 {
pankso@11 20 cd $src
pankso@12815 21 # Disable the tests since they won't work on a multi-architecture build
pankso@12815 22 cp Makefile Makefile.orig
pankso@12815 23 sed -e "/^all:/s/ test//" Makefile.orig > Makefile
pankso@12815 24 # No configure script, we must used CC, AR and RANLIB set by cook.
pankso@12815 25 case "$ARCH" in
pankso@12815 26 arm)
pankso@12815 27 make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} &&
pankso@12815 28 make clean && make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;;
pankso@12815 29 *)
pankso@12815 30 make -f Makefile-libbz2_so &&
pankso@12815 31 make clean && make ;;
pankso@12815 32 esac
pankso@12815 33 }
pankso@12815 34
pankso@12815 35 # Just to be sure when cross-compiling.
pankso@12815 36 testsuite()
pankso@12815 37 {
pankso@12815 38 readelf -h $src/bzip2-shared
pankso@11 39 }
pankso@11 40
pankso@11 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@11 42 genpkg_rules()
pankso@11 43 {
pascal@752 44 mkdir -p $fs/usr/bin
pankso@11 45 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
pankso@11 46 # Da bunzip2, bzcat and lib symlink.
pankso@11 47 cd $fs/usr/bin
pankso@11 48 ln -s bzip2 bunzip2
pankso@11 49 ln -s bzip2 bzcat
pankso@11 50 }
pankso@11 51
rcx@3694 52 # Remove Busybox symlinks before installing
pankso@11 53 pre_install()
pankso@11 54 {
pankso@12815 55 echo "Processing post-install commands..."
pankso@12815 56 rm -f $root/usr/bin/bunzip2
pankso@12815 57 rm -f $root/usr/bin/bzcat
pankso@12815 58 #rm -f $root/usr/bin/bzip2
pankso@11 59 }
rcx@3694 60
rcx@3694 61 # Restore Busybox symlinks upon removal
rcx@3694 62 post_remove()
rcx@3694 63 {
rcx@3694 64 ln -s /bin/busybox /usr/bin/bunzip2
rcx@3694 65 ln -s /bin/busybox /usr/bin/bzcat
pankso@12815 66 #ln -s /bin/busybox /usr/bin/bzip2
rcx@3694 67 }