wok view pigz/receipt @ rev 24979

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 07 20:53:56 2022 +0000 (24 months ago)
parents 453c249b6219
children 376b2435dac3
line source
1 # SliTaz package receipt.
3 PACKAGE="pigz"
4 VERSION="2.4"
5 CATEGORY="base-system"
6 SHORT_DESC="Parallel Implementation of GZip."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.zlib.net/pigz"
11 WGET_URL="https://github.com/madler/pigz/archive/v$VERSION.tar.gz"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed '/pigz-/!d;/tar/!d;/pigz.tar/d;s|.*pigz-\([0-9\.]*\).tar.*|\1|' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's/-lz/& -lm/' Makefile
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin $install/usr/share/man
34 cp $src/pigz.1 $install/usr/share/man
35 cp $src/pigz $fs/usr/bin
36 ln -s pigz $fs/usr/bin/unpigz
37 }
39 pre_remove()
40 {
41 sed -i '/gzip=pigz/d' $1/etc/profile
42 }
44 post_install()
45 {
46 grep -qs 'gzip=pigz' $1/etc/profile ||
47 echo 'alias gzip=pigz' >> $1/etc/profile
48 }