wok-next view bzip2/receipt @ rev 547
Up: GTK+ (2.12.6) and deps (glib,pango, + clearlooks for 2.10 engines)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 12 17:37:29 2008 +0200 (2008-04-12) |
parents | 534cedd9d753 |
children | 54e0e2124353 |
line source
1 # SliTaz package receipt.
3 PACKAGE="bzip2"
4 VERSION="1.0.4"
5 CATEGORY="utilities"
6 SHORT_DESC="High-quality data compressor."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.bzip.org/"
10 WGET_URL="http://www.bzip.org/1.0.4/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 make -f Makefile-libbz2_so
17 make clean
18 make
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/bin $fs/usr/lib
25 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
26 cp -a $src/libbz2.so* $fs/usr/lib
27 strip --strip-unneeded $fs/usr/bin/*
28 strip --strip-debug $fs/usr/lib/*
29 # Da bunzip2, bzcat and lib symlink.
30 cd $fs/usr/bin
31 ln -s bzip2 bunzip2
32 ln -s bzip2 bzcat
33 cd ../lib
34 ln -s libbz2.so.1.0.4 libbz2.so
35 }
37 # Pre install commands for Tazpkg.
38 # Force remove of an eventual bzcat link to Busybox.
39 pre_install()
40 {
41 local root
42 root=$1
43 echo "Processing post-install commands..."
44 rm -f $root/usr/bin/bzcat
45 }