wok-next annotate bzip2/receipt @ rev 20908

bzip2: update home page and source URL (thanks shann); domain bzip.org is suspended now...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Aug 12 04:53:45 2018 +0300 (2018-08-12)
parents 90a5eb560fd6
children d5aab818505e
rev   line source
al@19736 1 # SliTaz package receipt v2.
pankso@11 2
pankso@11 3 PACKAGE="bzip2"
slaxemulator@6376 4 VERSION="1.0.6"
pankso@211 5 CATEGORY="utilities"
al@19736 6 SHORT_DESC="A program and library for data compression"
pankso@11 7 MAINTAINER="pankso@slitaz.org"
pascal@15474 8 LICENSE="BSD"
al@20908 9 WEB_SITE="https://web.archive.org/web/20180801004107/http://www.bzip.org/"
al@20436 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/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@20908 16 TARBALL_MD5="00b516f4704d4a7cb50a1d97e6e8e15b"
al@19561 17
al@19736 18 SPLIT="bzlib bzip2-apps bzip2-dev"
gokhlayeh@8174 19
al@20436 20 compile_rules() {
pankso@12815 21 case "$ARCH" in
pankso@16528 22 arm*)
al@20436 23 # No configure script, we must used CC, AR and RANLIB set by cook.
al@20436 24 make -f Makefile-libbz2_so CC=$CC AR=$AR RANLIB=$RANLIB &&
al@20436 25 make clean && make CC=$CC AR=$AR RANLIB=$RANLIB ;;
pankso@12815 26 *)
al@20436 27 # add large-file support
al@20436 28 sed -i 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' ./Makefile-libbz2_so
al@20436 29
pankso@12815 30 make -f Makefile-libbz2_so &&
pankso@12815 31 make clean && make ;;
al@20436 32 esac &&
al@19288 33
al@20436 34 make install || return 1
al@20436 35
al@20436 36 rm $install/usr/bin/bunzip2 $install/usr/bin/bzcat
al@20436 37 ln -s bzip2 $install/bin/bunzip2
al@20436 38 ln -s bzip2 $install/bin/bzcat
pankso@12815 39 }
pankso@12815 40
pankso@12815 41 # Just to be sure when cross-compiling.
al@20436 42 testsuite() {
pankso@12815 43 readelf -h $src/bzip2-shared
pankso@11 44 }
pankso@11 45
al@20436 46 genpkg_rules() {
al@19736 47 case $PACKAGE in
al@19736 48 bzip2)
al@19736 49 copy bzip2 bunzip2 bzcat
al@19736 50 DEPENDS="bzlib"
al@20436 51 TAGS="LFS compression archive"
al@19736 52 ;;
al@19736 53 bzlib)
al@19736 54 copy *.so*
al@19745 55 DEPENDS=" "
al@19736 56 CAT="libs|library"
al@19736 57 ;;
al@19736 58 bzip2-apps)
al@20436 59 copy bin/ @rm
al@19736 60 DEPENDS="bzlib"
al@19736 61 CAT="utilities|apps"
al@19736 62 ;;
al@19736 63 bzip2-dev)
al@19736 64 copy @dev
al@19736 65 ;;
al@19736 66 esac
pankso@11 67 }