wok annotate gzip/receipt @ rev 18474
gzip: add zgrep to packaged files list
| author | nneul@neulinger.org | 
|---|---|
| date | Mon Oct 05 18:50:36 2015 +0000 (2015-10-05) | 
| parents | e30b21af1714 | 
| children | 9e01bc6321ea | 
| rev | line source | 
|---|---|
| erjo@8054 | 1 # SliTaz package receipt. | 
| erjo@8054 | 2 | 
| erjo@8054 | 3 PACKAGE="gzip" | 
| al@17264 | 4 VERSION="1.6" | 
| 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... " | 
| al@17264 | 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... " | 
| al@17264 | 48 ln -s busybox $1/bin/gzip | 
| al@17264 | 49 ln -s busybox $1/bin/gunzip | 
| al@17264 | 50 status | 
| slaxemulator@8061 | 51 } |