wok-next view gzip/receipt @ rev 21278

updated giac (1.4.9 -> 1.5.0.75)
author Hans-G?nter Theisgen
date Sat Dec 07 16:47:36 2019 +0100 (2019-12-07)
parents d5aab818505e
children
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 COPY_std="gzip gunzip zgrep"
19 COPY_full="bin/ @rm"
21 DEPENDS_full="gzip"
23 TAGS_std="LFS"
24 CAT_full="system-tools|full set"
26 compile_rules() {
27 # fixes for glibc-2.28
28 sed -i 's|IO_ftrylockfile|IO_EOF_SEEN|' lib/*.c
29 echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
31 ./configure $CONFIGURE_ARGS &&
32 make &&
33 make install || return 1
35 mkdir -p $install/bin
36 mv -v $install/usr/bin/gzip $install/bin
37 }
39 # Removing Busybox gunzip applet
40 # as we have /usr/bin/gunzip in this package
41 pre_install_gzip() {
42 for i in gzip gunzip; do
43 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
44 done
45 :
46 }
48 # Removing Busybox uncompress and zcat applets
49 # as we have /usr/bin/uncompress and /usr/bin/zcat in this package
50 pre_install_gzip_full() {
51 for i in uncompress zcat; do
52 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
53 done
54 :
55 }