wok-current annotate gzip/receipt @ rev 9581
Fixed libisofs by compiling it with -j1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Apr 12 11:55:02 2011 +0000 (2011-04-12) |
parents | 94e1889a6838 |
children | e51d5e93d570 |
rev | line source |
---|---|
erjo@8054 | 1 # SliTaz package receipt. |
erjo@8054 | 2 |
erjo@8054 | 3 PACKAGE="gzip" |
erjo@8054 | 4 VERSION="1.4" |
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 && |
erjo@8054 | 23 make && make DESTDIR=$PWD/_pkg 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 |
erjo@8054 | 30 cp -a $_pkg/usr/bin/gzip $fs/usr/bin |
erjo@8054 | 31 cp -a $_pkg/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 } |