wok-next view gzip/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | e7a485521d6a |
children | a43eb412173d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gzip"
4 VERSION="1.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU compression utilities"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/gzip/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/gzip.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="glibc-dev"
16 SPLIT="$PACKAGE-full"
18 compile_rules() {
19 ./configure $CONFIGURE_ARGS &&
20 make &&
21 make install || return 1
23 mkdir -p $install/bin
24 mv -v $install/usr/bin/gzip $install/bin
25 }
27 genpkg_rules() {
28 case $PACKAGE in
29 gzip)
30 copy gzip gunzip zgrep
31 TAGS="LFS"
32 ;;
33 gzip-full)
34 copy bin/ @rm
35 CAT="system-tools|full set"
36 DEPENDS="gzip"
37 ;;
38 esac
39 }
41 # Removing Busybox gunzip applet
42 # as we have /usr/bin/gunzip in this package
43 pre_install_gzip() {
44 for i in gzip gunzip; do
45 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
46 done
47 :
48 }
50 # Removing Busybox uncompress and zcat applets
51 # as we have /usr/bin/uncompress and /usr/bin/zcat in this package
52 pre_install_gzip_full() {
53 for i in uncompress zcat; do
54 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
55 done
56 :
57 }