wok-next annotate gzip/receipt @ rev 21103

emacs: depends on emacs-common
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 03 11:21:15 2019 +0200 (2019-01-03)
parents d5aab818505e
children
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"
al@21020 7 MAINTAINER="devel@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@19567 11
al@17264 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19567 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
erjo@8054 14
pascal@14999 15 BUILD_DEPENDS="glibc-dev"
al@21020 16 SPLIT="$PACKAGE-full"
pascal@14999 17
al@21064 18 COPY_std="gzip gunzip zgrep"
al@21064 19 COPY_full="bin/ @rm"
al@21064 20
al@21064 21 DEPENDS_full="gzip"
al@21064 22
al@21064 23 TAGS_std="LFS"
al@21064 24 CAT_full="system-tools|full set"
al@21064 25
al@20436 26 compile_rules() {
al@21064 27 # fixes for glibc-2.28
al@21064 28 sed -i 's|IO_ftrylockfile|IO_EOF_SEEN|' lib/*.c
al@21064 29 echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
al@21064 30
al@20905 31 ./configure $CONFIGURE_ARGS &&
al@20905 32 make &&
al@20905 33 make install || return 1
al@19745 34
al@19745 35 mkdir -p $install/bin
al@19745 36 mv -v $install/usr/bin/gzip $install/bin
erjo@8054 37 }
erjo@8054 38
al@19745 39 # Removing Busybox gunzip applet
al@19745 40 # as we have /usr/bin/gunzip in this package
al@20436 41 pre_install_gzip() {
al@20436 42 for i in gzip gunzip; do
al@20436 43 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
al@20436 44 done
al@20436 45 :
slaxemulator@8061 46 }
slaxemulator@8061 47
al@19745 48 # Removing Busybox uncompress and zcat applets
al@19745 49 # as we have /usr/bin/uncompress and /usr/bin/zcat in this package
al@20436 50 pre_install_gzip_full() {
al@20436 51 for i in uncompress zcat; do
al@20436 52 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
al@20436 53 done
al@20436 54 :
slaxemulator@8061 55 }