wok-next annotate gzip/receipt @ rev 20329

Up hiredis, iniparser
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 14 11:32:29 2017 +0200 (2017-11-14)
parents 708211fae5b6
children 90a5eb560fd6
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@19567 10
al@17264 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19567 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
erjo@8054 13
pascal@14999 14 BUILD_DEPENDS="glibc-dev"
al@19567 15 SPLIT="gzip-full"
pascal@14999 16
erjo@8054 17 # Rules to configure and make the package.
erjo@8054 18 compile_rules()
erjo@8054 19 {
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
erjo@8054 26 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8054 27 genpkg_rules()
erjo@8054 28 {
al@19745 29 case $PACKAGE in
al@19745 30 gzip)
al@19745 31 copy gzip gunzip zgrep
al@19745 32 ;;
al@19745 33 gzip-full)
al@19745 34 copy bin/
al@19745 35 remove_already_packed
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@19745 44 pre_install_gzip()
slaxemulator@8061 45 {
pascal@18730 46 rm -f "$1/bin/gzip" "$1/bin/gunzip"
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@19745 51 pre_install_gzip_full()
slaxemulator@8061 52 {
al@19745 53 rm -f "$1/bin/uncompress" "$1/bin/zcat"
slaxemulator@8061 54 }