wok-6.x annotate bzip2/receipt @ rev 23834

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