wok-next diff gzip/receipt @ rev 20495

make-slitaz-icons: fix previous commit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 14 03:16:12 2018 +0200 (2018-03-14)
parents 9a17d981d0f7
children e7a485521d6a
line diff
     1.1 --- a/gzip/receipt	Thu Jun 08 00:20:23 2017 +0300
     1.2 +++ b/gzip/receipt	Wed Mar 14 03:16:12 2018 +0200
     1.3 @@ -7,6 +7,8 @@
     1.4  MAINTAINER="erjo@slitaz.org"
     1.5  LICENSE="GPL3"
     1.6  WEB_SITE="https://www.gnu.org/software/gzip/"
     1.7 +LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gzip.html"
     1.8 +HOST_ARCH="i486 x86_64"
     1.9  
    1.10  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.11  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.12 @@ -14,25 +16,21 @@
    1.13  BUILD_DEPENDS="glibc-dev"
    1.14  SPLIT="gzip-full"
    1.15  
    1.16 -# Rules to configure and make the package.
    1.17 -compile_rules()
    1.18 -{
    1.19 +compile_rules() {
    1.20  	./configure $CONFIGURE_ARGS && make && make install
    1.21  
    1.22  	mkdir -p $install/bin
    1.23  	mv -v $install/usr/bin/gzip $install/bin
    1.24  }
    1.25  
    1.26 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 -genpkg_rules()
    1.28 -{
    1.29 +genpkg_rules() {
    1.30  	case $PACKAGE in
    1.31  		gzip)
    1.32  			copy gzip gunzip zgrep
    1.33 +			TAGS="LFS"
    1.34  			;;
    1.35  		gzip-full)
    1.36 -			copy bin/
    1.37 -			remove_already_packed
    1.38 +			copy bin/ @rm
    1.39  			CAT="system-tools|full set"
    1.40  			DEPENDS="gzip"
    1.41  			;;
    1.42 @@ -41,14 +39,18 @@
    1.43  
    1.44  # Removing Busybox gunzip applet
    1.45  # as we have /usr/bin/gunzip in this package
    1.46 -pre_install_gzip()
    1.47 -{
    1.48 -	rm -f "$1/bin/gzip" "$1/bin/gunzip"
    1.49 +pre_install_gzip() {
    1.50 +	for i in gzip gunzip; do
    1.51 +		readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
    1.52 +	done
    1.53 +	:
    1.54  }
    1.55  
    1.56  # Removing Busybox uncompress and zcat applets
    1.57  # as we have /usr/bin/uncompress and /usr/bin/zcat in this package
    1.58 -pre_install_gzip_full()
    1.59 -{
    1.60 -	rm -f "$1/bin/uncompress" "$1/bin/zcat"
    1.61 +pre_install_gzip_full() {
    1.62 +	for i in uncompress zcat; do
    1.63 +		readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
    1.64 +	done
    1.65 +	:
    1.66  }