wok view gzip/receipt @ rev 14931

Up: eet-dev (1.7.8)
author Dominique Corbex <domcox@slitaz.org>
date Thu Aug 08 19:15:36 2013 +0200 (2013-08-08)
parents 6222200efb6f
children 2b9f96603415
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 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=$DESTDIR 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 $install/usr/bin/gzip $fs/usr/bin
31 cp -a $install/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 }