wok-6.x view gzip/receipt @ rev 18608
Up cookutils, tazlito
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 17 01:25:09 2015 +0200 (2015-11-17) |
parents | e30b21af1714 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="gzip"
4 VERSION="1.6"
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 }