wok-stable annotate bzip2/receipt @ rev 3611

glibc: fix genpkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 29 11:40:12 2009 +0200 (2009-06-29)
parents 54e0e2124353
children 702cfa82af35
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"
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
pankso@11 34 # Pre install commands for Tazpkg.
pankso@11 35 # Force remove of an eventual bzcat link to Busybox.
pankso@11 36 pre_install()
pankso@11 37 {
pankso@11 38 local root
pankso@11 39 root=$1
pankso@11 40 echo "Processing post-install commands..."
pankso@11 41 rm -f $root/usr/bin/bzcat
pankso@11 42 }