wok-current view bzip2/receipt @ rev 23136
updated linuxconsoletools (1.6.0 -> 1.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 14 17:12:22 2020 +0100 (2020-03-14) |
parents | 1a95dca96d7f |
children | 68cf96abc146 |
line source
1 # SliTaz package receipt.
3 PACKAGE="bzip2"
4 VERSION="1.0.8"
5 CATEGORY="utilities"
6 TAGS="compression archive"
7 SHORT_DESC="High-quality data compressor."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://sourceware.org/bzip2/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://sourceware.org/pub/$PACKAGE/$TARBALL"
15 DEPENDS="bzlib"
16 BUILD_DEPENDS=""
18 HOST_ARCH="i486 arm"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # Disable the tests since they won't work on a multi-architecture build
24 cp Makefile Makefile.orig
25 sed -e "/^all:/s/ test//" Makefile.orig > Makefile
27 # No configure script, we must used CC, AR and RANLIB set by cook.
28 case "$ARCH" in
29 arm*)
30 make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} &&
31 make clean &&
32 make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;;
33 *)
34 make -f Makefile-libbz2_so &&
35 make clean &&
36 make ;;
37 esac
39 cook_pick_manpages bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
40 }
42 # Just to be sure when cross-compiling.
43 testsuite()
44 {
45 readelf -h $src/bzip2-shared
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/bin
52 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
54 # Da bunzip2, bzcat and lib symlink.
55 cd $fs/usr/bin
56 ln -s bzip2 bunzip2
57 ln -s bzip2 bzcat
58 }
60 # Restore Busybox symlinks upon removal
61 post_remove()
62 {
63 ln -s /bin/busybox /usr/bin/bunzip2
64 ln -s /bin/busybox /usr/bin/bzcat
65 #ln -s /bin/busybox /usr/bin/bzip2
66 }