wok annotate pigz/receipt @ rev 25148
updated privoxy (3.0.28 -> 3.0.33)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 16:30:00 2022 +0100 (2022-06-29) |
parents | d765616e1f3d |
children | a3503ff52a2e |
rev | line source |
---|---|
pascal@15194 | 1 # SliTaz package receipt. |
pascal@15194 | 2 |
pascal@15194 | 3 PACKAGE="pigz" |
Hans-G?nter@25140 | 4 VERSION="2.7" |
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" |
Hans-G?nter@25140 | 9 WEB_SITE="https://zlib.net/pigz/" |
Hans-G?nter@25140 | 10 |
pascal@15194 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25140 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@15194 | 13 |
pascal@15194 | 14 DEPENDS="" |
pascal@15194 | 15 BUILD_DEPENDS="" |
pascal@15194 | 16 |
pascal@24425 | 17 # What is the latest version available today? |
pascal@24425 | 18 current_version() |
pascal@24425 | 19 { |
pascal@24425 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 21 sed '/pigz-/!d;/tar/!d;/pigz.tar/d;s|.*pigz-\([0-9\.]*\).tar.*|\1|' | sort -Vr | sed q |
pascal@24425 | 22 } |
pascal@24425 | 23 |
pascal@15194 | 24 # Rules to configure and make the package. |
pascal@15194 | 25 compile_rules() |
pascal@15194 | 26 { |
pascal@15194 | 27 sed -i 's/-lz/& -lm/' Makefile |
Hans-G?nter@25140 | 28 |
pascal@15194 | 29 make |
pascal@15194 | 30 } |
pascal@15194 | 31 |
pascal@15194 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15194 | 33 genpkg_rules() |
pascal@15194 | 34 { |
Hans-G?nter@25140 | 35 mkdir -p $fs/usr/bin |
Hans-G?nter@25140 | 36 mkdir -p $install/usr/share/man |
Hans-G?nter@25140 | 37 |
Hans-G?nter@25140 | 38 cp $src/pigz.1 $install/usr/share/man |
Hans-G?nter@25140 | 39 cp $src/pigz $fs/usr/bin |
Hans-G?nter@25140 | 40 ln -s pigz $fs/usr/bin/unpigz |
pascal@15194 | 41 } |
pascal@23955 | 42 |
pascal@23955 | 43 pre_remove() |
pascal@23955 | 44 { |
Hans-G?nter@25140 | 45 sed -i '/gzip=pigz/d' $1/etc/profile |
pascal@23955 | 46 } |
pascal@23955 | 47 |
pascal@23955 | 48 post_install() |
pascal@23955 | 49 { |
Hans-G?nter@25140 | 50 grep -qs 'gzip=pigz' $1/etc/profile || |
Hans-G?nter@25140 | 51 echo 'alias gzip=pigz' >> $1/etc/profile |
pascal@23955 | 52 } |