wok annotate bzip2/receipt @ rev 211
Most categorie are OK... (no more extra)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 13 15:26:29 2008 +0100 (2008-02-13) |
parents | 534cedd9d753 |
children | 54e0e2124353 |
rev | line source |
---|---|
pankso@11 | 1 # SliTaz package receipt. |
pankso@11 | 2 |
pankso@11 | 3 PACKAGE="bzip2" |
pankso@11 | 4 VERSION="1.0.4" |
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/" |
pankso@11 | 10 WGET_URL="http://www.bzip.org/1.0.4/$TARBALL" |
pankso@11 | 11 |
pankso@11 | 12 # Rules to configure and make the package. |
pankso@11 | 13 compile_rules() |
pankso@11 | 14 { |
pankso@11 | 15 cd $src |
pankso@11 | 16 make -f Makefile-libbz2_so |
pankso@11 | 17 make clean |
pankso@11 | 18 make |
pankso@11 | 19 } |
pankso@11 | 20 |
pankso@11 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@11 | 22 genpkg_rules() |
pankso@11 | 23 { |
pankso@11 | 24 mkdir -p $fs/usr/bin $fs/usr/lib |
pankso@11 | 25 cp -a $src/bzip2-shared $fs/usr/bin/bzip2 |
pankso@11 | 26 cp -a $src/libbz2.so* $fs/usr/lib |
pankso@11 | 27 strip --strip-unneeded $fs/usr/bin/* |
pankso@11 | 28 strip --strip-debug $fs/usr/lib/* |
pankso@11 | 29 # Da bunzip2, bzcat and lib symlink. |
pankso@11 | 30 cd $fs/usr/bin |
pankso@11 | 31 ln -s bzip2 bunzip2 |
pankso@11 | 32 ln -s bzip2 bzcat |
pankso@11 | 33 cd ../lib |
pankso@11 | 34 ln -s libbz2.so.1.0.4 libbz2.so |
pankso@11 | 35 } |
pankso@11 | 36 |
pankso@11 | 37 # Pre install commands for Tazpkg. |
pankso@11 | 38 # Force remove of an eventual bzcat link to Busybox. |
pankso@11 | 39 pre_install() |
pankso@11 | 40 { |
pankso@11 | 41 local root |
pankso@11 | 42 root=$1 |
pankso@11 | 43 echo "Processing post-install commands..." |
pankso@11 | 44 rm -f $root/usr/bin/bzcat |
pankso@11 | 45 } |