wok-current view bzip2/receipt @ rev 21823

Add lxsession-lxpolkit (thanks Saipul)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 25 19:23:22 2019 +0200 (2019-08-25)
parents 6fab3264ba87
children 1a95dca96d7f
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 # 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
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 cook_pick_manpages bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
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 mkdir -p $fs/usr/bin
48 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
49 # Da bunzip2, bzcat and lib symlink.
50 cd $fs/usr/bin
51 ln -s bzip2 bunzip2
52 ln -s bzip2 bzcat
53 }
55 # Restore Busybox symlinks upon removal
56 post_remove()
57 {
58 ln -s /bin/busybox /usr/bin/bunzip2
59 ln -s /bin/busybox /usr/bin/bzcat
60 #ln -s /bin/busybox /usr/bin/bzip2
61 }