wok-6.x view pigz/receipt @ rev 24953
updated nagvis and nagvis-doc (1.9.18 -> 1.9.31)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 15:05:31 2022 +0100 (2022-04-23) |
parents | 425563100416 |
children | d765616e1f3d |
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="$WEB_SITE/$TARBALL"
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 }