wok view gzip/receipt @ rev 10948

procps: tidy up receipt
author Paul Issott <paul@slitaz.org>
date Thu Sep 01 19:40:56 2011 +0100 (2011-09-01)
parents 94e1889a6838
children e51d5e93d570
line source
1 # SliTaz package receipt.
3 PACKAGE="gzip"
4 VERSION="1.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Data compression program"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="glibc-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/gzip/"
12 WGET_URL="http://ftp.gnu.org/gnu/gzip/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --infodir=/usr/share/info \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make && make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin
30 cp -a $_pkg/usr/bin/gzip $fs/usr/bin
31 cp -a $_pkg/usr/bin/gunzip $fs/usr/bin
32 }
34 # Pre and post install commands for Tazpkg.
35 # We must remove all Busybox symlink before installing.
36 #
37 pre_install()
38 {
39 local root
40 root=$1
41 echo "Processing pre-install commands..."
42 echo -n "Removing all Busybox replaced utils... "
43 rm -f $root/bin/gzip
44 rm -f $root/bin/gunzip
45 status
46 }
48 post_remove()
49 {
50 ln -s $1/bin/busybox $1/bin/gzip
51 ln -s $1/bin/busybox $1/bin/gunzip
52 }