wok-current rev 17264
Up: gzip (1.6).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 22 21:07:11 2014 +0300 (2014-10-22) |
parents | 3d7811276978 |
children | 02f2b0708066 |
files | gzip-full/receipt gzip/receipt |
line diff
1.1 --- a/gzip-full/receipt Wed Oct 22 09:28:39 2014 +0300 1.2 +++ b/gzip-full/receipt Wed Oct 22 21:07:11 2014 +0300 1.3 @@ -1,9 +1,9 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="gzip-full" 1.7 -VERSION="1.5" 1.8 +VERSION="1.6" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="Gzip full programs" 1.11 +SHORT_DESC="GNU compression utilities" 1.12 MAINTAINER="erjo@slitaz.org" 1.13 LICENSE="GPL3" 1.14 WEB_SITE="http://www.gnu.org/software/gzip/" 1.15 @@ -14,9 +14,25 @@ 1.16 # Rules to gen a SliTaz package suitable for Tazpkg. 1.17 genpkg_rules() 1.18 { 1.19 - mkdir -p $fs/usr/bin 1.20 - cp -a $install/usr/bin/z* $fs/usr/bin 1.21 - cp -a $install/usr/bin/un* $fs/usr/bin 1.22 - cp -a $src/gzexe $fs/usr/bin 1.23 + mkdir -p $fs/usr 1.24 + 1.25 + cp -a $install/usr/bin $fs/usr 1.26 + rm -f $fs/usr/bin/gzip $fs/usr/bin/gunzip 1.27 } 1.28 1.29 +# Pre and post install commands for Tazpkg. 1.30 +# We must remove all Busybox symlink before installing. 1.31 +pre_install() 1.32 +{ 1.33 + echo -n "Removing Busybox uncompress and zcat utilities... " 1.34 + rm -f $1/bin/uncompress $1/bin/zcat 1.35 + status 1.36 +} 1.37 + 1.38 +post_remove() 1.39 +{ 1.40 + echo -n "Restoring Busybox uncompress and zcat utilities... " 1.41 + ln -s busybox $1/bin/uncompress 1.42 + ln -s busybox $1/bin/zcat 1.43 + status 1.44 +}
2.1 --- a/gzip/receipt Wed Oct 22 09:28:39 2014 +0300 2.2 +++ b/gzip/receipt Wed Oct 22 21:07:11 2014 +0300 2.3 @@ -1,12 +1,12 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="gzip" 2.7 -VERSION="1.5" 2.8 +VERSION="1.6" 2.9 CATEGORY="system-tools" 2.10 -SHORT_DESC="Data compression program" 2.11 +SHORT_DESC="GNU compression utilities (gzip and gunzip)" 2.12 MAINTAINER="erjo@slitaz.org" 2.13 LICENSE="GPL3" 2.14 -TARBALL="$PACKAGE-$VERSION.tar.gz" 2.15 +TARBALL="$PACKAGE-$VERSION.tar.xz" 2.16 WEB_SITE="http://www.gnu.org/software/gzip/" 2.17 WGET_URL="http://ftp.gnu.org/gnu/gzip/$TARBALL" 2.18 2.19 @@ -16,7 +16,6 @@ 2.20 # Rules to configure and make the package. 2.21 compile_rules() 2.22 { 2.23 - cd $src 2.24 ./configure \ 2.25 --prefix=/usr \ 2.26 --infodir=/usr/share/info \ 2.27 @@ -35,20 +34,17 @@ 2.28 2.29 # Pre and post install commands for Tazpkg. 2.30 # We must remove all Busybox symlink before installing. 2.31 -# 2.32 pre_install() 2.33 { 2.34 - local root 2.35 - root=$1 2.36 - echo "Processing pre-install commands..." 2.37 - echo -n "Removing all Busybox replaced utils... " 2.38 - rm -f $root/bin/gzip 2.39 - rm -f $root/bin/gunzip 2.40 + echo -n "Removing Busybox gzip and gunzip utilities... " 2.41 + rm -f $1/bin/gzip $1/bin/gunzip 2.42 status 2.43 } 2.44 2.45 post_remove() 2.46 { 2.47 - ln -s $1/bin/busybox $1/bin/gzip 2.48 - ln -s $1/bin/busybox $1/bin/gunzip 2.49 + echo -n "Restoring Busybox gzip and gunzip utilities... " 2.50 + ln -s busybox $1/bin/gzip 2.51 + ln -s busybox $1/bin/gunzip 2.52 + status 2.53 }