wok annotate gzip/receipt @ rev 17989
qemu: apply cloop.u
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 23 13:30:18 2015 +0200 (2015-04-23) |
parents | 2b9f96603415 |
children | e715990c5f63 |
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 |
slaxemulator@13084 | 31 cp -a $install/usr/bin/gzip $fs/usr/bin |
slaxemulator@13084 | 32 cp -a $install/usr/bin/gunzip $fs/usr/bin |
erjo@8054 | 33 } |
erjo@8054 | 34 |
slaxemulator@8061 | 35 # Pre and post install commands for Tazpkg. |
slaxemulator@8061 | 36 # We must remove all Busybox symlink before installing. |
slaxemulator@8061 | 37 pre_install() |
slaxemulator@8061 | 38 { |
al@17264 | 39 echo -n "Removing Busybox gzip and gunzip utilities... " |
al@17264 | 40 rm -f $1/bin/gzip $1/bin/gunzip |
slaxemulator@8061 | 41 status |
slaxemulator@8061 | 42 } |
slaxemulator@8061 | 43 |
slaxemulator@8061 | 44 post_remove() |
slaxemulator@8061 | 45 { |
al@17264 | 46 echo -n "Restoring Busybox gzip and gunzip utilities... " |
al@17264 | 47 ln -s busybox $1/bin/gzip |
al@17264 | 48 ln -s busybox $1/bin/gunzip |
al@17264 | 49 status |
slaxemulator@8061 | 50 } |