wok-next annotate bzip2/receipt @ rev 19962
Up mosh (1.3.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 17 11:01:20 2017 +0200 (2017-10-17) |
parents | 7387df590f12 |
children | 90a5eb560fd6 |
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/" |
pankso@12815 | 10 TAGS="compression archive" |
pankso@12815 | 11 HOST_ARCH="i486 arm" |
pankso@12815 | 12 |
al@19561 | 13 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19561 | 14 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL" |
al@19561 | 15 |
al@19736 | 16 SPLIT="bzlib bzip2-apps bzip2-dev" |
gokhlayeh@8174 | 17 |
pankso@11 | 18 # Rules to configure and make the package. |
pankso@11 | 19 compile_rules() |
pankso@11 | 20 { |
pankso@12815 | 21 # No configure script, we must used CC, AR and RANLIB set by cook. |
pankso@12815 | 22 case "$ARCH" in |
pankso@16528 | 23 arm*) |
pankso@12815 | 24 make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} && |
pankso@12815 | 25 make clean && make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;; |
pankso@12815 | 26 *) |
pankso@12815 | 27 make -f Makefile-libbz2_so && |
pankso@12815 | 28 make clean && make ;; |
pankso@12815 | 29 esac |
al@19288 | 30 |
al@19561 | 31 make install |
pankso@12815 | 32 } |
pankso@12815 | 33 |
pankso@12815 | 34 # Just to be sure when cross-compiling. |
pankso@12815 | 35 testsuite() |
pankso@12815 | 36 { |
pankso@12815 | 37 readelf -h $src/bzip2-shared |
pankso@11 | 38 } |
pankso@11 | 39 |
pankso@11 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@11 | 41 genpkg_rules() |
pankso@11 | 42 { |
al@19736 | 43 case $PACKAGE in |
al@19736 | 44 bzip2) |
al@19736 | 45 copy bzip2 bunzip2 bzcat |
al@19736 | 46 DEPENDS="bzlib" |
al@19736 | 47 ;; |
al@19736 | 48 bzlib) |
al@19736 | 49 copy *.so* |
al@19745 | 50 DEPENDS=" " |
al@19736 | 51 CAT="libs|library" |
al@19736 | 52 ;; |
al@19736 | 53 bzip2-apps) |
al@19736 | 54 copy bin/ |
al@19743 | 55 remove_already_packed |
al@19736 | 56 DEPENDS="bzlib" |
al@19736 | 57 CAT="utilities|apps" |
al@19736 | 58 ;; |
al@19736 | 59 bzip2-dev) |
al@19736 | 60 copy @dev |
al@19736 | 61 ;; |
al@19736 | 62 esac |
pankso@11 | 63 } |