wok-next view gzip/receipt @ rev 20849
syslinux: prevent shell expansion, specify CONFIG_FILES
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 23 17:39:19 2018 +0300 (2018-06-23) |
parents | 9a17d981d0f7 |
children | e7a485521d6a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gzip"
4 VERSION="1.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU compression utilities"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/gzip/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gzip.html"
11 HOST_ARCH="i486 x86_64"
13 TARBALL="$PACKAGE-$VERSION.tar.xz"
14 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
16 BUILD_DEPENDS="glibc-dev"
17 SPLIT="gzip-full"
19 compile_rules() {
20 ./configure $CONFIGURE_ARGS && make && make install
22 mkdir -p $install/bin
23 mv -v $install/usr/bin/gzip $install/bin
24 }
26 genpkg_rules() {
27 case $PACKAGE in
28 gzip)
29 copy gzip gunzip zgrep
30 TAGS="LFS"
31 ;;
32 gzip-full)
33 copy bin/ @rm
34 CAT="system-tools|full set"
35 DEPENDS="gzip"
36 ;;
37 esac
38 }
40 # Removing Busybox gunzip applet
41 # as we have /usr/bin/gunzip in this package
42 pre_install_gzip() {
43 for i in gzip gunzip; do
44 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
45 done
46 :
47 }
49 # Removing Busybox uncompress and zcat applets
50 # as we have /usr/bin/uncompress and /usr/bin/zcat in this package
51 pre_install_gzip_full() {
52 for i in uncompress zcat; do
53 readlink "$1/bin/$i" | grep -q busybox && rm "$1/bin/$i"
54 done
55 :
56 }