# SliTaz package receipt. PACKAGE="bzip2" VERSION="1.0.8" CATEGORY="utilities" TAGS="compression archive" SHORT_DESC="High-quality data compressor." MAINTAINER="pankso@slitaz.org" LICENSE="BSD" WEB_SITE="https://sourceware.org/bzip2/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://sourceware.org/pub/$PACKAGE/$TARBALL" DEPENDS="bzlib" BUILD_DEPENDS="" HOST_ARCH="i486 arm" current_version() { wget -O - ${WEB_SITE}downloads.html 2>/dev/null | \ sed '/current/!d;s|.* ||;s|.".*||;q' } # Rules to configure and make the package. compile_rules() { # Disable the tests since they won't work on a multi-architecture build cp Makefile Makefile.orig sed -e "/^all:/s/ test//" Makefile.orig > Makefile # No configure script, we must used CC, AR and RANLIB set by cook. case "$ARCH" in arm*) make -f Makefile-libbz2_so CC=${CC} AR=${AR} RANLIB=${RANLIB} && make clean && make CC=${CC} AR=${AR} RANLIB=${RANLIB} ;; *) make -f Makefile-libbz2_so && make clean && make ;; esac cook_pick_manpages bzdiff.1 bzgrep.1 bzip2.1 bzmore.1 } # Just to be sure when cross-compiling. testsuite() { readelf -h $src/bzip2-shared } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $src/bzip2-shared $fs/usr/bin/bzip2 # Da bunzip2, bzcat and lib symlink. cd $fs/usr/bin ln -s bzip2 bunzip2 ln -s bzip2 bzcat } # Restore Busybox symlinks upon removal post_remove() { ln -s /bin/busybox /usr/bin/bunzip2 ln -s /bin/busybox /usr/bin/bzcat #ln -s /bin/busybox /usr/bin/bzip2 }