wok-current annotate gzip/receipt @ rev 25411
updated winetricks (20200412 -> 20220411)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 04 07:24:24 2022 +0100 (2022-08-04) |
parents | eb5a3cc75bb7 |
children | 3ad63c8fc2f9 |
rev | line source |
---|---|
erjo@8054 | 1 # SliTaz package receipt. |
erjo@8054 | 2 |
erjo@8054 | 3 PACKAGE="gzip" |
pascal@24100 | 4 VERSION="1.11" |
erjo@8054 | 5 CATEGORY="system-tools" |
al@17264 | 6 SHORT_DESC="GNU compression utilities (gzip and gunzip)" |
erjo@8054 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@17264 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
erjo@8054 | 10 WEB_SITE="http://www.gnu.org/software/gzip/" |
erjo@8054 | 11 WGET_URL="http://ftp.gnu.org/gnu/gzip/$TARBALL" |
erjo@8054 | 12 |
pascal@14999 | 13 DEPENDS="glibc-base" |
pascal@14999 | 14 BUILD_DEPENDS="glibc-dev" |
pascal@14999 | 15 |
pascal@24100 | 16 current_version() |
pascal@24100 | 17 { |
pascal@24100 | 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24100 | 19 sed '/tar/!d;s|.*gzip-\(.*\).tar.*".*|\1|' | sed '$!d' |
pascal@24100 | 20 } |
pascal@24100 | 21 |
erjo@8054 | 22 # Rules to configure and make the package. |
erjo@8054 | 23 compile_rules() |
erjo@8054 | 24 { |
erjo@8054 | 25 ./configure \ |
erjo@8054 | 26 --prefix=/usr \ |
erjo@8054 | 27 --infodir=/usr/share/info \ |
erjo@8054 | 28 --mandir=/usr/share/man \ |
erjo@8054 | 29 $CONFIGURE_ARGS && |
slaxemulator@13084 | 30 make && make DESTDIR=$DESTDIR install |
erjo@8054 | 31 } |
erjo@8054 | 32 |
erjo@8054 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@8054 | 34 genpkg_rules() |
erjo@8054 | 35 { |
erjo@8054 | 36 mkdir -p $fs/usr/bin |
nneul@18474 | 37 cp -a $install/usr/bin/zgrep $fs/usr/bin |
slaxemulator@13084 | 38 cp -a $install/usr/bin/gzip $fs/usr/bin |
slaxemulator@13084 | 39 cp -a $install/usr/bin/gunzip $fs/usr/bin |
erjo@8054 | 40 } |
erjo@8054 | 41 |
slaxemulator@8061 | 42 # Pre and post install commands for Tazpkg. |
slaxemulator@8061 | 43 # We must remove all Busybox symlink before installing. |
slaxemulator@8061 | 44 pre_install() |
slaxemulator@8061 | 45 { |
al@17264 | 46 echo -n "Removing Busybox gzip and gunzip utilities... " |
pascal@18730 | 47 rm -f "$1/bin/gzip" "$1/bin/gunzip" |
slaxemulator@8061 | 48 status |
slaxemulator@8061 | 49 } |
slaxemulator@8061 | 50 |
slaxemulator@8061 | 51 post_remove() |
slaxemulator@8061 | 52 { |
al@17264 | 53 echo -n "Restoring Busybox gzip and gunzip utilities... " |
pascal@18730 | 54 ln -s busybox "$1/bin/gzip" |
pascal@18730 | 55 ln -s busybox "$1/bin/gunzip" |
al@17264 | 56 status |
slaxemulator@8061 | 57 } |