# SliTaz package receipt. PACKAGE="pigz" VERSION="2.7" CATEGORY="base-system" SHORT_DESC="Parallel Implementation of GZip." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="Apache" WEB_SITE="https://zlib.net/pigz/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="${WEB_SITE}$TARBALL" DEPENDS="" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed '/pigz-/!d;/tar/!d;/pigz.tar/d;s|.*pigz-\([0-9\.]*\).tar.*|\1|' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's/-lz/& -lm/' Makefile make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin mkdir -p $install/usr/share/man cp $src/pigz.1 $install/usr/share/man cp $src/pigz $fs/usr/bin ln -s pigz $fs/usr/bin/unpigz } pre_remove() { sed -i '/gzip=pigz/d' $1/etc/profile } post_install() { grep -qs 'gzip=pigz' $1/etc/profile || echo 'alias gzip=pigz' >> $1/etc/profile }