wok-current view gzip/receipt @ rev 16772
pcmanfm: disable cd mount on start,exit on umount/eject
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Thu Jun 19 21:46:00 2014 +0000 (2014-06-19) |
parents | e51d5e93d570 |
children | e30b21af1714 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gzip"
4 VERSION="1.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Data compression program"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
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 cd $src
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make && make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $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 #
39 pre_install()
40 {
41 local root
42 root=$1
43 echo "Processing pre-install commands..."
44 echo -n "Removing all Busybox replaced utils... "
45 rm -f $root/bin/gzip
46 rm -f $root/bin/gunzip
47 status
48 }
50 post_remove()
51 {
52 ln -s $1/bin/busybox $1/bin/gzip
53 ln -s $1/bin/busybox $1/bin/gunzip
54 }