wok-next diff bzip2/receipt @ rev 20691
aescrypt: add option for SHA256sum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Mon May 21 19:42:16 2018 +0000 (2018-05-21) |
parents | 9a17d981d0f7 |
children | c4dfe475131c |
line diff
1.1 --- a/bzip2/receipt Thu Jun 08 00:20:23 2017 +0300 1.2 +++ b/bzip2/receipt Mon May 21 19:42:16 2018 +0000 1.3 @@ -7,43 +7,45 @@ 1.4 MAINTAINER="pankso@slitaz.org" 1.5 LICENSE="BSD" 1.6 WEB_SITE="http://www.bzip.org/" 1.7 -TAGS="compression archive" 1.8 -HOST_ARCH="i486 arm" 1.9 +LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/bzip2.html" 1.10 1.11 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL" 1.13 1.14 SPLIT="bzlib bzip2-apps bzip2-dev" 1.15 1.16 -# Rules to configure and make the package. 1.17 -compile_rules() 1.18 -{ 1.19 - # No configure script, we must used CC, AR and RANLIB set by cook. 1.20 +compile_rules() { 1.21 case "$ARCH" in 1.22 arm*) 1.23 - make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} && 1.24 - make clean && make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;; 1.25 + # No configure script, we must used CC, AR and RANLIB set by cook. 1.26 + make -f Makefile-libbz2_so CC=$CC AR=$AR RANLIB=$RANLIB && 1.27 + make clean && make CC=$CC AR=$AR RANLIB=$RANLIB ;; 1.28 *) 1.29 + # add large-file support 1.30 + sed -i 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' ./Makefile-libbz2_so 1.31 + 1.32 make -f Makefile-libbz2_so && 1.33 make clean && make ;; 1.34 - esac 1.35 + esac && 1.36 1.37 - make install 1.38 + make install || return 1 1.39 + 1.40 + rm $install/usr/bin/bunzip2 $install/usr/bin/bzcat 1.41 + ln -s bzip2 $install/bin/bunzip2 1.42 + ln -s bzip2 $install/bin/bzcat 1.43 } 1.44 1.45 # Just to be sure when cross-compiling. 1.46 -testsuite() 1.47 -{ 1.48 +testsuite() { 1.49 readelf -h $src/bzip2-shared 1.50 } 1.51 1.52 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.53 -genpkg_rules() 1.54 -{ 1.55 +genpkg_rules() { 1.56 case $PACKAGE in 1.57 bzip2) 1.58 copy bzip2 bunzip2 bzcat 1.59 DEPENDS="bzlib" 1.60 + TAGS="LFS compression archive" 1.61 ;; 1.62 bzlib) 1.63 copy *.so* 1.64 @@ -51,8 +53,7 @@ 1.65 CAT="libs|library" 1.66 ;; 1.67 bzip2-apps) 1.68 - copy bin/ 1.69 - remove_already_packed 1.70 + copy bin/ @rm 1.71 DEPENDS="bzlib" 1.72 CAT="utilities|apps" 1.73 ;;