wok-4.x view gzip/receipt @ rev 12471
Mass Rebuild of base packages
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Nov 10 11:11:46 2022 +0000 (2022-11-10) |
parents | 6222200efb6f |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gzip"
4 VERSION="1.6"
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 }