wok-next view bzip2/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents 9a17d981d0f7
children c4dfe475131c
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="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"
15 SPLIT="bzlib bzip2-apps bzip2-dev"
17 compile_rules() {
18 case "$ARCH" in
19 arm*)
20 # No configure script, we must used CC, AR and RANLIB set by cook.
21 make -f Makefile-libbz2_so CC=$CC AR=$AR RANLIB=$RANLIB &&
22 make clean && make CC=$CC AR=$AR RANLIB=$RANLIB ;;
23 *)
24 # add large-file support
25 sed -i 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' ./Makefile-libbz2_so
27 make -f Makefile-libbz2_so &&
28 make clean && make ;;
29 esac &&
31 make install || return 1
33 rm $install/usr/bin/bunzip2 $install/usr/bin/bzcat
34 ln -s bzip2 $install/bin/bunzip2
35 ln -s bzip2 $install/bin/bzcat
36 }
38 # Just to be sure when cross-compiling.
39 testsuite() {
40 readelf -h $src/bzip2-shared
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 bzip2)
46 copy bzip2 bunzip2 bzcat
47 DEPENDS="bzlib"
48 TAGS="LFS compression archive"
49 ;;
50 bzlib)
51 copy *.so*
52 DEPENDS=" "
53 CAT="libs|library"
54 ;;
55 bzip2-apps)
56 copy bin/ @rm
57 DEPENDS="bzlib"
58 CAT="utilities|apps"
59 ;;
60 bzip2-dev)
61 copy @dev
62 ;;
63 esac
64 }