wok-next view gzip/receipt @ rev 21064
Up: cookutils (1113), iproute2 (4.19.0), libcap (2.26), meson (0.48.2), perl (5.28.1), procps-ng (3.3.15), psmisc (23.2), python3 (3.7.1), readline (7.0p5), util-linux (2.33); fix: grub2, gzip, m4
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Dec 05 18:07:35 2018 +0200 (2018-12-05) |
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 }