wok-next annotate gzip/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 90a5eb560fd6 |
children | d5aab818505e |
rev | line source |
---|---|
al@19745 | 1 # SliTaz package receipt v2. |
erjo@8054 | 2 |
erjo@8054 | 3 PACKAGE="gzip" |
al@20905 | 4 VERSION="1.9" |
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@20905 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/development/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@20905 | 20 ./configure $CONFIGURE_ARGS && |
al@20905 | 21 make && |
al@20905 | 22 make install || return 1 |
al@19745 | 23 |
al@19745 | 24 mkdir -p $install/bin |
al@19745 | 25 mv -v $install/usr/bin/gzip $install/bin |
erjo@8054 | 26 } |
erjo@8054 | 27 |
al@20436 | 28 genpkg_rules() { |
al@19745 | 29 case $PACKAGE in |
al@19745 | 30 gzip) |
al@19745 | 31 copy gzip gunzip zgrep |
al@20436 | 32 TAGS="LFS" |
al@19745 | 33 ;; |
al@19745 | 34 gzip-full) |
al@20436 | 35 copy bin/ @rm |
al@19745 | 36 CAT="system-tools|full set" |
al@19745 | 37 DEPENDS="gzip" |
al@19745 | 38 ;; |
al@19745 | 39 esac |
erjo@8054 | 40 } |
erjo@8054 | 41 |
al@19745 | 42 # Removing Busybox gunzip applet |
al@19745 | 43 # as we have /usr/bin/gunzip in this package |
al@20436 | 44 pre_install_gzip() { |
al@20436 | 45 for i in gzip gunzip; do |
al@20436 | 46 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i" |
al@20436 | 47 done |
al@20436 | 48 : |
slaxemulator@8061 | 49 } |
slaxemulator@8061 | 50 |
al@19745 | 51 # Removing Busybox uncompress and zcat applets |
al@19745 | 52 # as we have /usr/bin/uncompress and /usr/bin/zcat in this package |
al@20436 | 53 pre_install_gzip_full() { |
al@20436 | 54 for i in uncompress zcat; do |
al@20436 | 55 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i" |
al@20436 | 56 done |
al@20436 | 57 : |
slaxemulator@8061 | 58 } |