wok-6.x annotate bzip2/receipt @ rev 19678
Update licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 10 13:15:17 2017 +0100 (2017-02-10) |
parents | 6fab3264ba87 |
children | 1a95dca96d7f |
rev | line source |
---|---|
pankso@11 | 1 # SliTaz package receipt. |
pankso@11 | 2 |
pankso@11 | 3 PACKAGE="bzip2" |
slaxemulator@6376 | 4 VERSION="1.0.6" |
pankso@211 | 5 CATEGORY="utilities" |
pankso@11 | 6 SHORT_DESC="High-quality data compressor." |
pankso@11 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15474 | 8 LICENSE="BSD" |
pankso@11 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@11 | 10 WEB_SITE="http://www.bzip.org/" |
slaxemulator@5410 | 11 WGET_URL="http://www.bzip.org/$VERSION/$TARBALL" |
pankso@12815 | 12 TAGS="compression archive" |
pankso@12815 | 13 HOST_ARCH="i486 arm" |
pankso@12815 | 14 |
pascal@752 | 15 DEPENDS="bzlib" |
pankso@12815 | 16 BUILD_DEPENDS="" |
gokhlayeh@8174 | 17 |
pankso@11 | 18 # Rules to configure and make the package. |
pankso@11 | 19 compile_rules() |
pankso@11 | 20 { |
pankso@12815 | 21 # Disable the tests since they won't work on a multi-architecture build |
pankso@12815 | 22 cp Makefile Makefile.orig |
pankso@12815 | 23 sed -e "/^all:/s/ test//" Makefile.orig > Makefile |
pankso@16528 | 24 |
pankso@12815 | 25 # No configure script, we must used CC, AR and RANLIB set by cook. |
pankso@12815 | 26 case "$ARCH" in |
pankso@16528 | 27 arm*) |
pankso@12815 | 28 make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} && |
pankso@12815 | 29 make clean && make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;; |
pankso@12815 | 30 *) |
pankso@12815 | 31 make -f Makefile-libbz2_so && |
pankso@12815 | 32 make clean && make ;; |
pankso@12815 | 33 esac |
al@19288 | 34 |
al@19288 | 35 cook_pick_manpages bzdiff.1 bzgrep.1 bzip2.1 bzmore.1 |
pankso@12815 | 36 } |
pankso@12815 | 37 |
pankso@12815 | 38 # Just to be sure when cross-compiling. |
pankso@12815 | 39 testsuite() |
pankso@12815 | 40 { |
pankso@12815 | 41 readelf -h $src/bzip2-shared |
pankso@11 | 42 } |
pankso@11 | 43 |
pankso@11 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@11 | 45 genpkg_rules() |
pankso@11 | 46 { |
pascal@752 | 47 mkdir -p $fs/usr/bin |
pankso@11 | 48 cp -a $src/bzip2-shared $fs/usr/bin/bzip2 |
pankso@11 | 49 # Da bunzip2, bzcat and lib symlink. |
pankso@11 | 50 cd $fs/usr/bin |
pankso@11 | 51 ln -s bzip2 bunzip2 |
pankso@11 | 52 ln -s bzip2 bzcat |
pankso@11 | 53 } |
pankso@11 | 54 |
rcx@3694 | 55 # Restore Busybox symlinks upon removal |
rcx@3694 | 56 post_remove() |
rcx@3694 | 57 { |
rcx@3694 | 58 ln -s /bin/busybox /usr/bin/bunzip2 |
rcx@3694 | 59 ln -s /bin/busybox /usr/bin/bzcat |
pankso@12815 | 60 #ln -s /bin/busybox /usr/bin/bzip2 |
rcx@3694 | 61 } |