wok diff bzip2/receipt @ rev 195
Add : slitaz-menus 1.0 (Freedesktop menu)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Feb 07 18:05:05 2008 +0100 (2008-02-07) |
parents | |
children | cf22fee17710 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bzip2/receipt Thu Feb 07 18:05:05 2008 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="bzip2" 1.7 +VERSION="1.0.4" 1.8 +CATEGORY="extra" 1.9 +SHORT_DESC="High-quality data compressor." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.bzip.org/" 1.13 +WGET_URL="http://www.bzip.org/1.0.4/$TARBALL" 1.14 + 1.15 +# Rules to configure and make the package. 1.16 +compile_rules() 1.17 +{ 1.18 + cd $src 1.19 + make -f Makefile-libbz2_so 1.20 + make clean 1.21 + make 1.22 +} 1.23 + 1.24 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.25 +genpkg_rules() 1.26 +{ 1.27 + mkdir -p $fs/usr/bin $fs/usr/lib 1.28 + cp -a $src/bzip2-shared $fs/usr/bin/bzip2 1.29 + cp -a $src/libbz2.so* $fs/usr/lib 1.30 + strip --strip-unneeded $fs/usr/bin/* 1.31 + strip --strip-debug $fs/usr/lib/* 1.32 + # Da bunzip2, bzcat and lib symlink. 1.33 + cd $fs/usr/bin 1.34 + ln -s bzip2 bunzip2 1.35 + ln -s bzip2 bzcat 1.36 + cd ../lib 1.37 + ln -s libbz2.so.1.0.4 libbz2.so 1.38 +} 1.39 + 1.40 +# Pre install commands for Tazpkg. 1.41 +# Force remove of an eventual bzcat link to Busybox. 1.42 +pre_install() 1.43 +{ 1.44 + local root 1.45 + root=$1 1.46 + echo "Processing post-install commands..." 1.47 + rm -f $root/usr/bin/bzcat 1.48 +}