wok annotate bzip2/receipt @ rev 6506

Up: python-webtest to 1.2.2
author Julien Rabier <taziden@slitaz.org>
date Fri Oct 01 21:15:59 2010 +0000 (2010-10-01)
parents 2e0531fcc423
children 8bfd4fcfb42a
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"
pascal@752 11 DEPENDS="bzlib"
jozee@3568 12 TAGS="compression archive"
pankso@11 13
pankso@11 14 # Rules to configure and make the package.
pankso@11 15 compile_rules()
pankso@11 16 {
pankso@11 17 cd $src
pankso@11 18 make -f Makefile-libbz2_so
pankso@11 19 make clean
pankso@11 20 make
pankso@11 21 }
pankso@11 22
pankso@11 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@11 24 genpkg_rules()
pankso@11 25 {
pascal@752 26 mkdir -p $fs/usr/bin
pankso@11 27 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
pankso@11 28 # Da bunzip2, bzcat and lib symlink.
pankso@11 29 cd $fs/usr/bin
pankso@11 30 ln -s bzip2 bunzip2
pankso@11 31 ln -s bzip2 bzcat
pankso@11 32 }
pankso@11 33
rcx@3694 34 # Remove Busybox symlinks before installing
pankso@11 35 pre_install()
pankso@11 36 {
pankso@11 37 local root
pankso@11 38 root=$1
pankso@11 39 echo "Processing post-install commands..."
rcx@3694 40 rm -f $root/usr/bin/bunzip2
pankso@11 41 rm -f $root/usr/bin/bzcat
rcx@3694 42 # rm -f $root/usr/bin/bzip2
pankso@11 43 }
rcx@3694 44
rcx@3694 45 # Restore Busybox symlinks upon removal
rcx@3694 46 post_remove()
rcx@3694 47 {
rcx@3694 48 ln -s /bin/busybox /usr/bin/bunzip2
rcx@3694 49 ln -s /bin/busybox /usr/bin/bzcat
rcx@3694 50 # ln -s /bin/busybox /usr/bin/bzip2
rcx@3694 51 }