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