wok-next annotate gzip/receipt @ rev 13245
Move from undigest: turses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 14 13:39:29 2012 +0200 (2012-08-14) |
parents | 6222200efb6f |
children | 2b9f96603415 |
rev | line source |
---|---|
erjo@8054 | 1 # SliTaz package receipt. |
erjo@8054 | 2 |
erjo@8054 | 3 PACKAGE="gzip" |
slaxemulator@13084 | 4 VERSION="1.5" |
erjo@8054 | 5 CATEGORY="system-tools" |
erjo@8054 | 6 SHORT_DESC="Data compression program" |
erjo@8054 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@8054 | 8 DEPENDS="glibc-base" |
erjo@8054 | 9 BUILD_DEPENDS="glibc-dev" |
erjo@8054 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@8054 | 11 WEB_SITE="http://www.gnu.org/software/gzip/" |
erjo@8054 | 12 WGET_URL="http://ftp.gnu.org/gnu/gzip/$TARBALL" |
erjo@8054 | 13 |
erjo@8054 | 14 # Rules to configure and make the package. |
erjo@8054 | 15 compile_rules() |
erjo@8054 | 16 { |
erjo@8054 | 17 cd $src |
erjo@8054 | 18 ./configure \ |
erjo@8054 | 19 --prefix=/usr \ |
erjo@8054 | 20 --infodir=/usr/share/info \ |
erjo@8054 | 21 --mandir=/usr/share/man \ |
erjo@8054 | 22 $CONFIGURE_ARGS && |
slaxemulator@13084 | 23 make && make DESTDIR=$DESTDIR install |
erjo@8054 | 24 } |
erjo@8054 | 25 |
erjo@8054 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8054 | 27 genpkg_rules() |
erjo@8054 | 28 { |
erjo@8054 | 29 mkdir -p $fs/usr/bin |
slaxemulator@13084 | 30 cp -a $install/usr/bin/gzip $fs/usr/bin |
slaxemulator@13084 | 31 cp -a $install/usr/bin/gunzip $fs/usr/bin |
erjo@8054 | 32 } |
erjo@8054 | 33 |
slaxemulator@8061 | 34 # Pre and post install commands for Tazpkg. |
slaxemulator@8061 | 35 # We must remove all Busybox symlink before installing. |
slaxemulator@8061 | 36 # |
slaxemulator@8061 | 37 pre_install() |
slaxemulator@8061 | 38 { |
slaxemulator@8061 | 39 local root |
slaxemulator@8061 | 40 root=$1 |
slaxemulator@8061 | 41 echo "Processing pre-install commands..." |
slaxemulator@8061 | 42 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@8061 | 43 rm -f $root/bin/gzip |
slaxemulator@8061 | 44 rm -f $root/bin/gunzip |
slaxemulator@8061 | 45 status |
slaxemulator@8061 | 46 } |
slaxemulator@8061 | 47 |
slaxemulator@8061 | 48 post_remove() |
slaxemulator@8061 | 49 { |
slaxemulator@8062 | 50 ln -s $1/bin/busybox $1/bin/gzip |
slaxemulator@8062 | 51 ln -s $1/bin/busybox $1/bin/gunzip |
slaxemulator@8061 | 52 } |