wok-6.x view bzip2/receipt @ rev 24777
jack1: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 19 16:54:56 2022 +0000 (2022-03-19) |
parents | ea31fefd3ec4 |
children |
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 current_version()
21 {
22 wget -O - ${WEB_SITE}downloads.html 2>/dev/null | \
23 sed '/current/!d;s|.* ||;s|.".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Disable the tests since they won't work on a multi-architecture build
30 cp Makefile Makefile.orig
31 sed -e "/^all:/s/ test//" Makefile.orig > Makefile
33 # No configure script, we must used CC, AR and RANLIB set by cook.
34 case "$ARCH" in
35 arm*)
36 make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} &&
37 make clean &&
38 make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;;
39 *)
40 make -f Makefile-libbz2_so &&
41 make clean &&
42 make ;;
43 esac
45 cook_pick_manpages bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
46 }
48 # Just to be sure when cross-compiling.
49 testsuite()
50 {
51 readelf -h $src/bzip2-shared
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/bin
58 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
60 # Da bunzip2, bzcat and lib symlink.
61 cd $fs/usr/bin
62 ln -s bzip2 bunzip2
63 ln -s bzip2 bzcat
64 }
66 # Restore Busybox symlinks upon removal
67 post_remove()
68 {
69 ln -s /bin/busybox /usr/bin/bunzip2
70 ln -s /bin/busybox /usr/bin/bzcat
71 #ln -s /bin/busybox /usr/bin/bzip2
72 }