wok-next view bzip2/receipt @ rev 18924

glibc: fix build (thanks az_ua)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 25 14:47:17 2016 +0200 (2016-02-25)
parents 906854cfa70d
children a511baf85854
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
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 # Restore Busybox symlinks upon removal
54 post_remove()
55 {
56 ln -s /bin/busybox /usr/bin/bunzip2
57 ln -s /bin/busybox /usr/bin/bzcat
58 #ln -s /bin/busybox /usr/bin/bzip2
59 }