wok-next view bzip2/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c4dfe475131c
children 82b613cfd1e0
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="devel@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 $PACKAGE-apps $PACKAGE-dev"
20 compile_rules() {
21 # add large-file support
22 sed -i 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' ./Makefile-libbz2_so
24 make -f Makefile-libbz2_so &&
25 make clean &&
26 make &&
27 make install || return 1
29 rm $install/usr/bin/bunzip2 $install/usr/bin/bzcat
30 ln -s bzip2 $install/bin/bunzip2
31 ln -s bzip2 $install/bin/bzcat
32 }
34 # Just to be sure when cross-compiling.
35 testsuite() {
36 readelf -h $src/bzip2-shared
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 bzip2)
42 copy bzip2 bunzip2 bzcat
43 DEPENDS="bzlib"
44 TAGS="LFS compression archive"
45 ;;
46 bzlib)
47 copy *.so*
48 DEPENDS=" "
49 CAT="libs|library"
50 ;;
51 *-apps)
52 copy bin/ @rm
53 DEPENDS="bzlib"
54 CAT="utilities|apps"
55 ;;
56 *-dev)
57 copy @dev
58 ;;
59 esac
60 }