wok-6.x view bzip2/receipt @ rev 12725
fox14: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 05 13:03:47 2012 +0200 (2012-05-05) |
parents | 281db43073fb |
children | 09524cdf6ae8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="bzip2"
4 VERSION="1.0.6"
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/$VERSION/$TARBALL"
11 DEPENDS="bzlib"
12 BUILD_DEPENDS="gcc"
13 TAGS="compression archive"
15 # Rules to compile & install the temporary toolchain.
16 cook_tmp_toolchain()
17 {
18 cd $src
19 make && make PREFIX=/tools install
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 make -f Makefile-libbz2_so &&
27 make clean &&
28 make
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
36 # Da bunzip2, bzcat and lib symlink.
37 cd $fs/usr/bin
38 ln -s bzip2 bunzip2
39 ln -s bzip2 bzcat
40 }
42 # Remove Busybox symlinks before installing
43 pre_install()
44 {
45 local root
46 root=$1
47 echo "Processing post-install commands..."
48 rm -f $root/usr/bin/bunzip2
49 rm -f $root/usr/bin/bzcat
50 # rm -f $root/usr/bin/bzip2
51 }
53 # Restore Busybox symlinks upon removal
54 post_remove()
55 {
56 ln -s /bin/busybox /usr/bin/bunzip2
57 ln -s /bin/busybox /usr/bin/bzcat
58 # ln -s /bin/busybox /usr/bin/bzip2
59 }