wok view gzip/receipt @ rev 25514

Add memtest64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 16 14:18:05 2023 +0000 (21 months ago)
parents eb5a3cc75bb7
children 096ad9edc98b
line source
1 # SliTaz package receipt.
3 PACKAGE="gzip"
4 VERSION="1.11"
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 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed '/tar/!d;s|.*gzip-\(.*\).tar.*".*|\1|' | sed '$!d'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make && make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin
37 cp -a $install/usr/bin/zgrep $fs/usr/bin
38 cp -a $install/usr/bin/gzip $fs/usr/bin
39 cp -a $install/usr/bin/gunzip $fs/usr/bin
40 }
42 # Pre and post install commands for Tazpkg.
43 # We must remove all Busybox symlink before installing.
44 pre_install()
45 {
46 echo -n "Removing Busybox gzip and gunzip utilities... "
47 rm -f "$1/bin/gzip" "$1/bin/gunzip"
48 status
49 }
51 post_remove()
52 {
53 echo -n "Restoring Busybox gzip and gunzip utilities... "
54 ln -s busybox "$1/bin/gzip"
55 ln -s busybox "$1/bin/gunzip"
56 status
57 }