wok annotate bzip2/receipt @ rev 24119

Add javascript-boulderdash
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 04 18:07:23 2021 +0000 (2021-10-04)
parents ea31fefd3ec4
children
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
pascal@24066 20 current_version()
pascal@24066 21 {
pascal@24066 22 wget -O - ${WEB_SITE}downloads.html 2>/dev/null | \
pascal@24066 23 sed '/current/!d;s|.* ||;s|.".*||;q'
pascal@24066 24 }
pascal@24066 25
pankso@11 26 # Rules to configure and make the package.
pankso@11 27 compile_rules()
pankso@11 28 {
pankso@12815 29 # Disable the tests since they won't work on a multi-architecture build
pankso@12815 30 cp Makefile Makefile.orig
pankso@12815 31 sed -e "/^all:/s/ test//" Makefile.orig > Makefile
Hans-G?nter@22575 32
pankso@12815 33 # No configure script, we must used CC, AR and RANLIB set by cook.
pankso@12815 34 case "$ARCH" in
pankso@16528 35 arm*)
pankso@12815 36 make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} &&
Hans-G?nter@22575 37 make clean &&
Hans-G?nter@22575 38 make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;;
pankso@12815 39 *)
pankso@12815 40 make -f Makefile-libbz2_so &&
Hans-G?nter@22575 41 make clean &&
Hans-G?nter@22575 42 make ;;
pankso@12815 43 esac
al@19288 44
al@19288 45 cook_pick_manpages bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
pankso@12815 46 }
pankso@12815 47
pankso@12815 48 # Just to be sure when cross-compiling.
pankso@12815 49 testsuite()
pankso@12815 50 {
pankso@12815 51 readelf -h $src/bzip2-shared
pankso@11 52 }
pankso@11 53
pankso@11 54 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@11 55 genpkg_rules()
pankso@11 56 {
pascal@752 57 mkdir -p $fs/usr/bin
Hans-G?nter@22575 58 cp -a $src/bzip2-shared $fs/usr/bin/bzip2
Hans-G?nter@22575 59
pankso@11 60 # Da bunzip2, bzcat and lib symlink.
pankso@11 61 cd $fs/usr/bin
pankso@11 62 ln -s bzip2 bunzip2
pankso@11 63 ln -s bzip2 bzcat
pankso@11 64 }
pankso@11 65
rcx@3694 66 # Restore Busybox symlinks upon removal
rcx@3694 67 post_remove()
rcx@3694 68 {
Hans-G?nter@22575 69 ln -s /bin/busybox /usr/bin/bunzip2
Hans-G?nter@22575 70 ln -s /bin/busybox /usr/bin/bzcat
Hans-G?nter@22575 71 #ln -s /bin/busybox /usr/bin/bzip2
rcx@3694 72 }