wok-next annotate bzip2/receipt @ rev 21119
libarchive: depends on libzstd
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 14 03:39:08 2019 +0200 (2019-01-14) |
parents | 82b613cfd1e0 |
children | 1bccb307f229 |
rev | line source |
---|---|
al@19736 | 1 # SliTaz package receipt v2. |
pankso@11 | 2 |
pankso@11 | 3 PACKAGE="bzip2" |
al@21105 | 4 VERSION="1.0.6" # 2010-09-20 |
pankso@211 | 5 CATEGORY="utilities" |
al@19736 | 6 SHORT_DESC="A program and library for data compression" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15474 | 8 LICENSE="BSD" |
al@20908 | 9 WEB_SITE="https://web.archive.org/web/20180801004107/http://www.bzip.org/" |
al@21105 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/svn/chapter06/bzip2.html" |
pankso@12815 | 11 |
al@19561 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20908 | 13 #WGET_URL="http://www.bzip.org/$VERSION/$TARBALL" |
al@20908 | 14 #WGET_URL="https://web.archive.org/web/20180624184835if_/http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz" |
al@20908 | 15 WGET_URL="https://fossies.org/linux/misc/bzip2-1.0.6.tar.gz" |
al@21105 | 16 TARBALL_SHA1="3f89f861209ce81a6bab1fd1998c0ef311712002" |
al@20908 | 17 TARBALL_MD5="00b516f4704d4a7cb50a1d97e6e8e15b" |
al@19561 | 18 |
al@21105 | 19 SPLIT="lib$PACKAGE $PACKAGE $PACKAGE-dev" |
al@21105 | 20 |
al@21105 | 21 DEPENDS_libbzip2=" " |
al@21105 | 22 DEPENDS_std="libbzip2" |
al@21105 | 23 |
al@21105 | 24 TAGS_std="LFS compression archive" |
gokhlayeh@8174 | 25 |
al@20436 | 26 compile_rules() { |
al@21020 | 27 # add large-file support |
al@21020 | 28 sed -i 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' ./Makefile-libbz2_so |
al@20436 | 29 |
al@21020 | 30 make -f Makefile-libbz2_so && |
al@21020 | 31 make clean && |
al@21020 | 32 make && |
al@20436 | 33 make install || return 1 |
al@20436 | 34 |
al@20436 | 35 rm $install/usr/bin/bunzip2 $install/usr/bin/bzcat |
al@20436 | 36 ln -s bzip2 $install/bin/bunzip2 |
al@20436 | 37 ln -s bzip2 $install/bin/bzcat |
pankso@12815 | 38 } |
pankso@12815 | 39 |
pankso@12815 | 40 # Just to be sure when cross-compiling. |
al@20436 | 41 testsuite() { |
pankso@12815 | 42 readelf -h $src/bzip2-shared |
pankso@11 | 43 } |
pankso@11 | 44 |
al@21105 | 45 PROVIDE_libbzip2="bzlib" |