wok-current view bzip2/receipt @ rev 15534

Up: libfirefox (17.0.11esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 24 17:36:10 2013 +0100 (2013-11-24)
parents 09524cdf6ae8
children 906854cfa70d
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 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.bzip.org/"
11 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
12 TAGS="compression archive"
13 HOST_ARCH="i486 arm"
15 DEPENDS="bzlib"
16 BUILD_DEPENDS=""
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 # Disable the tests since they won't work on a multi-architecture build
23 cp Makefile Makefile.orig
24 sed -e "/^all:/s/ test//" Makefile.orig > Makefile
25 # No configure script, we must used CC, AR and RANLIB set by cook.
26 case "$ARCH" in
27 arm)
28 make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} &&
29 make clean && make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;;
30 *)
31 make -f Makefile-libbz2_so &&
32 make clean && make ;;
33 esac
34 }
36 # Just to be sure when cross-compiling.
37 testsuite()
38 {
39 readelf -h $src/bzip2-shared
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/bin
46 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
47 # Da bunzip2, bzcat and lib symlink.
48 cd $fs/usr/bin
49 ln -s bzip2 bunzip2
50 ln -s bzip2 bzcat
51 }
53 # Remove Busybox symlinks before installing
54 pre_install()
55 {
56 echo "Processing post-install commands..."
57 rm -f $root/usr/bin/bunzip2
58 rm -f $root/usr/bin/bzcat
59 #rm -f $root/usr/bin/bzip2
60 }
62 # Restore Busybox symlinks upon removal
63 post_remove()
64 {
65 ln -s /bin/busybox /usr/bin/bunzip2
66 ln -s /bin/busybox /usr/bin/bzcat
67 #ln -s /bin/busybox /usr/bin/bzip2
68 }