wok-next diff gzip/receipt @ rev 19813
fix pcmanfm building
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jul 20 13:40:52 2017 +0300 (2017-07-20) |
parents | 708211fae5b6 |
children | 90a5eb560fd6 |
line diff
1.1 --- a/gzip/receipt Mon Dec 19 06:26:53 2016 +0200 1.2 +++ b/gzip/receipt Thu Jul 20 13:40:52 2017 +0300 1.3 @@ -1,9 +1,9 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="gzip" 1.8 VERSION="1.8" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="GNU compression utilities (gzip and gunzip)" 1.11 +SHORT_DESC="GNU compression utilities" 1.12 MAINTAINER="erjo@slitaz.org" 1.13 LICENSE="GPL3" 1.14 WEB_SITE="https://www.gnu.org/software/gzip/" 1.15 @@ -11,7 +11,6 @@ 1.16 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.17 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.18 1.19 -DEPENDS="glibc-base" 1.20 BUILD_DEPENDS="glibc-dev" 1.21 SPLIT="gzip-full" 1.22 1.23 @@ -19,23 +18,37 @@ 1.24 compile_rules() 1.25 { 1.26 ./configure $CONFIGURE_ARGS && make && make install 1.27 + 1.28 + mkdir -p $install/bin 1.29 + mv -v $install/usr/bin/gzip $install/bin 1.30 } 1.31 1.32 # Rules to gen a SliTaz package suitable for Tazpkg. 1.33 genpkg_rules() 1.34 { 1.35 - cook_copy_files gzip gunzip zgrep 1.36 + case $PACKAGE in 1.37 + gzip) 1.38 + copy gzip gunzip zgrep 1.39 + ;; 1.40 + gzip-full) 1.41 + copy bin/ 1.42 + remove_already_packed 1.43 + CAT="system-tools|full set" 1.44 + DEPENDS="gzip" 1.45 + ;; 1.46 + esac 1.47 } 1.48 1.49 -pre_install() 1.50 +# Removing Busybox gunzip applet 1.51 +# as we have /usr/bin/gunzip in this package 1.52 +pre_install_gzip() 1.53 { 1.54 - # Removing Busybox gzip and gunzip applets 1.55 - # as we have /usr/bin/gzip and /usr/bin/gunzip in this package 1.56 rm -f "$1/bin/gzip" "$1/bin/gunzip" 1.57 } 1.58 1.59 -post_remove() 1.60 +# Removing Busybox uncompress and zcat applets 1.61 +# as we have /usr/bin/uncompress and /usr/bin/zcat in this package 1.62 +pre_install_gzip_full() 1.63 { 1.64 - ln -s busybox "$1/bin/gzip" 1.65 - ln -s busybox "$1/bin/gunzip" 1.66 + rm -f "$1/bin/uncompress" "$1/bin/zcat" 1.67 }