wok-next annotate gzip/receipt @ rev 20500
Tiny edits: fix permissions and avoid out-of-tree files.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Mar 15 20:43:55 2018 +0200 (2018-03-15) |
parents | 9a17d981d0f7 |
children | e7a485521d6a |
rev | line source |
---|---|
al@19745 | 1 # SliTaz package receipt v2. |
erjo@8054 | 2 |
erjo@8054 | 3 PACKAGE="gzip" |
al@19567 | 4 VERSION="1.8" |
erjo@8054 | 5 CATEGORY="system-tools" |
al@19745 | 6 SHORT_DESC="GNU compression utilities" |
erjo@8054 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19567 | 9 WEB_SITE="https://www.gnu.org/software/gzip/" |
al@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gzip.html" |
al@20436 | 11 HOST_ARCH="i486 x86_64" |
al@19567 | 12 |
al@17264 | 13 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19567 | 14 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
erjo@8054 | 15 |
pascal@14999 | 16 BUILD_DEPENDS="glibc-dev" |
al@19567 | 17 SPLIT="gzip-full" |
pascal@14999 | 18 |
al@20436 | 19 compile_rules() { |
al@19567 | 20 ./configure $CONFIGURE_ARGS && make && make install |
al@19745 | 21 |
al@19745 | 22 mkdir -p $install/bin |
al@19745 | 23 mv -v $install/usr/bin/gzip $install/bin |
erjo@8054 | 24 } |
erjo@8054 | 25 |
al@20436 | 26 genpkg_rules() { |
al@19745 | 27 case $PACKAGE in |
al@19745 | 28 gzip) |
al@19745 | 29 copy gzip gunzip zgrep |
al@20436 | 30 TAGS="LFS" |
al@19745 | 31 ;; |
al@19745 | 32 gzip-full) |
al@20436 | 33 copy bin/ @rm |
al@19745 | 34 CAT="system-tools|full set" |
al@19745 | 35 DEPENDS="gzip" |
al@19745 | 36 ;; |
al@19745 | 37 esac |
erjo@8054 | 38 } |
erjo@8054 | 39 |
al@19745 | 40 # Removing Busybox gunzip applet |
al@19745 | 41 # as we have /usr/bin/gunzip in this package |
al@20436 | 42 pre_install_gzip() { |
al@20436 | 43 for i in gzip gunzip; do |
al@20436 | 44 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i" |
al@20436 | 45 done |
al@20436 | 46 : |
slaxemulator@8061 | 47 } |
slaxemulator@8061 | 48 |
al@19745 | 49 # Removing Busybox uncompress and zcat applets |
al@19745 | 50 # as we have /usr/bin/uncompress and /usr/bin/zcat in this package |
al@20436 | 51 pre_install_gzip_full() { |
al@20436 | 52 for i in uncompress zcat; do |
al@20436 | 53 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i" |
al@20436 | 54 done |
al@20436 | 55 : |
slaxemulator@8061 | 56 } |