wok-next annotate bzip2/receipt @ rev 20436

Update packages listed in the LFS book.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 21 19:48:17 2018 +0200 (2018-02-21)
parents 9a17d981d0f7
children c4dfe475131c
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"
pankso@11 9 WEB_SITE="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@19561 13 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL"
al@19561 14
al@19736 15 SPLIT="bzlib bzip2-apps bzip2-dev"
gokhlayeh@8174 16
al@20436 17 compile_rules() {
pankso@12815 18 case "$ARCH" in
pankso@16528 19 arm*)
al@20436 20 # No configure script, we must used CC, AR and RANLIB set by cook.
al@20436 21 make -f Makefile-libbz2_so CC=$CC AR=$AR RANLIB=$RANLIB &&
al@20436 22 make clean && make CC=$CC AR=$AR RANLIB=$RANLIB ;;
pankso@12815 23 *)
al@20436 24 # add large-file support
al@20436 25 sed -i 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' ./Makefile-libbz2_so
al@20436 26
pankso@12815 27 make -f Makefile-libbz2_so &&
pankso@12815 28 make clean && make ;;
al@20436 29 esac &&
al@19288 30
al@20436 31 make install || return 1
al@20436 32
al@20436 33 rm $install/usr/bin/bunzip2 $install/usr/bin/bzcat
al@20436 34 ln -s bzip2 $install/bin/bunzip2
al@20436 35 ln -s bzip2 $install/bin/bzcat
pankso@12815 36 }
pankso@12815 37
pankso@12815 38 # Just to be sure when cross-compiling.
al@20436 39 testsuite() {
pankso@12815 40 readelf -h $src/bzip2-shared
pankso@11 41 }
pankso@11 42
al@20436 43 genpkg_rules() {
al@19736 44 case $PACKAGE in
al@19736 45 bzip2)
al@19736 46 copy bzip2 bunzip2 bzcat
al@19736 47 DEPENDS="bzlib"
al@20436 48 TAGS="LFS compression archive"
al@19736 49 ;;
al@19736 50 bzlib)
al@19736 51 copy *.so*
al@19745 52 DEPENDS=" "
al@19736 53 CAT="libs|library"
al@19736 54 ;;
al@19736 55 bzip2-apps)
al@20436 56 copy bin/ @rm
al@19736 57 DEPENDS="bzlib"
al@19736 58 CAT="utilities|apps"
al@19736 59 ;;
al@19736 60 bzip2-dev)
al@19736 61 copy @dev
al@19736 62 ;;
al@19736 63 esac
pankso@11 64 }