wok-6.x view gzip/receipt @ rev 20573
Up xsshfs (20181112)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 13 13:51:58 2018 +0100 (2018-12-13) |
parents | 9e01bc6321ea |
children | eb5a3cc75bb7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gzip"
4 VERSION="1.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU compression utilities (gzip and gunzip)"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/gzip/"
11 WGET_URL="http://ftp.gnu.org/gnu/gzip/$TARBALL"
13 DEPENDS="glibc-base"
14 BUILD_DEPENDS="glibc-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure \
20 --prefix=/usr \
21 --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make && make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin
31 cp -a $install/usr/bin/zgrep $fs/usr/bin
32 cp -a $install/usr/bin/gzip $fs/usr/bin
33 cp -a $install/usr/bin/gunzip $fs/usr/bin
34 }
36 # Pre and post install commands for Tazpkg.
37 # We must remove all Busybox symlink before installing.
38 pre_install()
39 {
40 echo -n "Removing Busybox gzip and gunzip utilities... "
41 rm -f "$1/bin/gzip" "$1/bin/gunzip"
42 status
43 }
45 post_remove()
46 {
47 echo -n "Restoring Busybox gzip and gunzip utilities... "
48 ln -s busybox "$1/bin/gzip"
49 ln -s busybox "$1/bin/gunzip"
50 status
51 }