wok annotate bzip2/receipt @ rev 22053
minitest: post-install(): fix "sed: unmatched '|'" error
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 22 19:46:38 2019 +0200 (2019-10-22) |
parents | a511baf85854 |
children | ea31fefd3ec4 |
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" |
pascal@22053 | 10 WEB_SITE="https://sourceware.org/bzip2/" |
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 } |