wok-current annotate gzip/receipt @ rev 23333
updated perl-file-which (1.22 -> 1.23)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 07:07:01 2020 +0100 (2020-03-31) |
parents | 35a23f513b71 |
children | f8a963794d31 |
rev | line source |
---|---|
erjo@8054 | 1 # SliTaz package receipt. |
erjo@8054 | 2 |
erjo@8054 | 3 PACKAGE="gzip" |
Hans-G?nter@20643 | 4 VERSION="1.10" |
erjo@8054 | 5 CATEGORY="system-tools" |
al@17264 | 6 SHORT_DESC="GNU compression utilities (gzip and gunzip)" |
erjo@8054 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@17264 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
erjo@8054 | 10 WEB_SITE="http://www.gnu.org/software/gzip/" |
erjo@8054 | 11 WGET_URL="http://ftp.gnu.org/gnu/gzip/$TARBALL" |
erjo@8054 | 12 |
pascal@14999 | 13 DEPENDS="glibc-base" |
pascal@14999 | 14 BUILD_DEPENDS="glibc-dev" |
pascal@14999 | 15 |
erjo@8054 | 16 # Rules to configure and make the package. |
erjo@8054 | 17 compile_rules() |
erjo@8054 | 18 { |
erjo@8054 | 19 ./configure \ |
erjo@8054 | 20 --prefix=/usr \ |
erjo@8054 | 21 --infodir=/usr/share/info \ |
erjo@8054 | 22 --mandir=/usr/share/man \ |
erjo@8054 | 23 $CONFIGURE_ARGS && |
slaxemulator@13084 | 24 make && make DESTDIR=$DESTDIR install |
erjo@8054 | 25 } |
erjo@8054 | 26 |
erjo@8054 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8054 | 28 genpkg_rules() |
erjo@8054 | 29 { |
erjo@8054 | 30 mkdir -p $fs/usr/bin |
nneul@18474 | 31 cp -a $install/usr/bin/zgrep $fs/usr/bin |
slaxemulator@13084 | 32 cp -a $install/usr/bin/gzip $fs/usr/bin |
slaxemulator@13084 | 33 cp -a $install/usr/bin/gunzip $fs/usr/bin |
erjo@8054 | 34 } |
erjo@8054 | 35 |
slaxemulator@8061 | 36 # Pre and post install commands for Tazpkg. |
slaxemulator@8061 | 37 # We must remove all Busybox symlink before installing. |
slaxemulator@8061 | 38 pre_install() |
slaxemulator@8061 | 39 { |
al@17264 | 40 echo -n "Removing Busybox gzip and gunzip utilities... " |
pascal@18730 | 41 rm -f "$1/bin/gzip" "$1/bin/gunzip" |
slaxemulator@8061 | 42 status |
slaxemulator@8061 | 43 } |
slaxemulator@8061 | 44 |
slaxemulator@8061 | 45 post_remove() |
slaxemulator@8061 | 46 { |
al@17264 | 47 echo -n "Restoring Busybox gzip and gunzip utilities... " |
pascal@18730 | 48 ln -s busybox "$1/bin/gzip" |
pascal@18730 | 49 ln -s busybox "$1/bin/gunzip" |
al@17264 | 50 status |
slaxemulator@8061 | 51 } |