wok annotate pigz/receipt @ rev 24599

updated giac (1.5.0.85 -> 1.7.0.47)
author Hans-G?nter Theisgen
date Wed Mar 02 07:39:53 2022 +0100 (2022-03-02)
parents 425563100416
children d765616e1f3d
rev   line source
pascal@15194 1 # SliTaz package receipt.
pascal@15194 2
pascal@15194 3 PACKAGE="pigz"
pascal@20421 4 VERSION="2.4"
pascal@15194 5 CATEGORY="base-system"
pascal@15194 6 SHORT_DESC="Parallel Implementation of GZip."
pascal@15194 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15195 8 LICENSE="Apache"
pascal@15194 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15195 10 WEB_SITE="http://www.zlib.net/pigz"
pascal@15195 11 WGET_URL="$WEB_SITE/$TARBALL"
pascal@15194 12
pascal@15194 13 DEPENDS=""
pascal@15194 14 BUILD_DEPENDS=""
pascal@15194 15
pascal@24425 16 # What is the latest version available today?
pascal@24425 17 current_version()
pascal@24425 18 {
pascal@24425 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 20 sed '/pigz-/!d;/tar/!d;/pigz.tar/d;s|.*pigz-\([0-9\.]*\).tar.*|\1|' | sort -Vr | sed q
pascal@24425 21 }
pascal@24425 22
pascal@15194 23 # Rules to configure and make the package.
pascal@15194 24 compile_rules()
pascal@15194 25 {
pascal@15194 26 sed -i 's/-lz/& -lm/' Makefile
pascal@15194 27 make
pascal@15194 28 }
pascal@15194 29
pascal@15194 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15194 31 genpkg_rules()
pascal@15194 32 {
pascal@20421 33 mkdir -p $fs/usr/bin $install/usr/share/man
pascal@20421 34 cp $src/pigz.1 $install/usr/share/man
pascal@15194 35 cp $src/pigz $fs/usr/bin
pascal@15194 36 ln -s pigz $fs/usr/bin/unpigz
pascal@15194 37 }
pascal@23955 38
pascal@23955 39 pre_remove()
pascal@23955 40 {
pascal@23955 41 sed -i '/gzip=pigz/d' $1/etc/profile
pascal@23955 42 }
pascal@23955 43
pascal@23955 44 post_install()
pascal@23955 45 {
pascal@23955 46 grep -qs 'gzip=pigz' $1/etc/profile ||
pascal@23955 47 echo 'alias gzip=pigz' >> $1/etc/profile
pascal@23955 48 }