wok-next view bzip2/receipt @ rev 20916

libopenraw, abiword: update deps; boost: pack unpacked libs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 21 05:42:25 2018 +0300 (2018-08-21)
parents 90a5eb560fd6
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="bzip2"
4 VERSION="1.0.6"
5 CATEGORY="utilities"
6 SHORT_DESC="A program and library for data compression"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://web.archive.org/web/20180801004107/http://www.bzip.org/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/bzip2.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 #WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
14 #WGET_URL="https://web.archive.org/web/20180624184835if_/http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz"
15 WGET_URL="https://fossies.org/linux/misc/bzip2-1.0.6.tar.gz"
16 TARBALL_MD5="00b516f4704d4a7cb50a1d97e6e8e15b"
18 SPLIT="bzlib bzip2-apps bzip2-dev"
20 compile_rules() {
21 case "$ARCH" in
22 arm*)
23 # No configure script, we must used CC, AR and RANLIB set by cook.
24 make -f Makefile-libbz2_so CC=$CC AR=$AR RANLIB=$RANLIB &&
25 make clean && make CC=$CC AR=$AR RANLIB=$RANLIB ;;
26 *)
27 # add large-file support
28 sed -i 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' ./Makefile-libbz2_so
30 make -f Makefile-libbz2_so &&
31 make clean && make ;;
32 esac &&
34 make install || return 1
36 rm $install/usr/bin/bunzip2 $install/usr/bin/bzcat
37 ln -s bzip2 $install/bin/bunzip2
38 ln -s bzip2 $install/bin/bzcat
39 }
41 # Just to be sure when cross-compiling.
42 testsuite() {
43 readelf -h $src/bzip2-shared
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 bzip2)
49 copy bzip2 bunzip2 bzcat
50 DEPENDS="bzlib"
51 TAGS="LFS compression archive"
52 ;;
53 bzlib)
54 copy *.so*
55 DEPENDS=" "
56 CAT="libs|library"
57 ;;
58 bzip2-apps)
59 copy bin/ @rm
60 DEPENDS="bzlib"
61 CAT="utilities|apps"
62 ;;
63 bzip2-dev)
64 copy @dev
65 ;;
66 esac
67 }