wok view pigz/receipt @ rev 24212

updated perl-file-slurp (9999.30 -> 9999.32)
author Hans-G?nter Theisgen
date Fri Dec 31 16:13:01 2021 +0100 (2021-12-31)
parents 86790a278e70
children 453c249b6219
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 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's/-lz/& -lm/' Makefile
20 make
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $install/usr/share/man
27 cp $src/pigz.1 $install/usr/share/man
28 cp $src/pigz $fs/usr/bin
29 ln -s pigz $fs/usr/bin/unpigz
30 }
32 pre_remove()
33 {
34 sed -i '/gzip=pigz/d' $1/etc/profile
35 }
37 post_install()
38 {
39 grep -qs 'gzip=pigz' $1/etc/profile ||
40 echo 'alias gzip=pigz' >> $1/etc/profile
41 }