wok-next view bzip2/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents a511baf85854
children 11f96bc53c0e
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 WEB_SITE="http://www.bzip.org/"
10 TAGS="compression archive"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
16 DEPENDS="bzlib"
17 SPLIT="bzlib bzip2-apps"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 patch -p1 -i $stuff/bzip2-1.0.6-install_docs-1.patch
23 patch -p1 -i $stuff/bzip2-1.0.6-fix_install.patch
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
35 make install
36 }
38 # Just to be sure when cross-compiling.
39 testsuite()
40 {
41 readelf -h $src/bzip2-shared
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 cook_copy_files bzip2 bunzip2 bzcat
48 }
50 # Restore Busybox symlinks upon removal
51 post_remove()
52 {
53 ln -s /bin/busybox /usr/bin/bunzip2
54 ln -s /bin/busybox /usr/bin/bzcat
55 }