wok-6.x view bzip2/receipt @ rev 14951

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