wok-next annotate gzip/receipt @ rev 15690
dpkg,debootstrap: Fix missing mkdir command
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Dec 21 08:14:41 2013 +0100 (2013-12-21) |
parents | e51d5e93d570 |
children | e30b21af1714 |
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" |
pascal@14999 | 8 LICENSE="GPL3" |
erjo@8054 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
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 cd $src |
erjo@8054 | 20 ./configure \ |
erjo@8054 | 21 --prefix=/usr \ |
erjo@8054 | 22 --infodir=/usr/share/info \ |
erjo@8054 | 23 --mandir=/usr/share/man \ |
erjo@8054 | 24 $CONFIGURE_ARGS && |
slaxemulator@13084 | 25 make && make DESTDIR=$DESTDIR install |
erjo@8054 | 26 } |
erjo@8054 | 27 |
erjo@8054 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8054 | 29 genpkg_rules() |
erjo@8054 | 30 { |
erjo@8054 | 31 mkdir -p $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 # |
slaxemulator@8061 | 39 pre_install() |
slaxemulator@8061 | 40 { |
slaxemulator@8061 | 41 local root |
slaxemulator@8061 | 42 root=$1 |
slaxemulator@8061 | 43 echo "Processing pre-install commands..." |
slaxemulator@8061 | 44 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@8061 | 45 rm -f $root/bin/gzip |
slaxemulator@8061 | 46 rm -f $root/bin/gunzip |
slaxemulator@8061 | 47 status |
slaxemulator@8061 | 48 } |
slaxemulator@8061 | 49 |
slaxemulator@8061 | 50 post_remove() |
slaxemulator@8061 | 51 { |
slaxemulator@8062 | 52 ln -s $1/bin/busybox $1/bin/gzip |
slaxemulator@8062 | 53 ln -s $1/bin/busybox $1/bin/gunzip |
slaxemulator@8061 | 54 } |