wok-6.x annotate unzip/receipt @ rev 24973

Up zsh (5.8.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 01 15:03:44 2022 +0000 (2022-05-01)
parents 56ee356284c6
children 7dd01dedad38
rev   line source
pascal@920 1 # SliTaz package receipt.
pascal@920 2
pascal@920 3 PACKAGE="unzip"
slaxemulator@6522 4 VERSION="6.0"
pascal@920 5 CATEGORY="system-tools"
pascal@920 6 SHORT_DESC="Zip dearchiver."
pascal@920 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15601 8 LICENSE="other"
al@19001 9 TARBALL="$PACKAGE${VERSION//./}.tar.gz"
pascal@23797 10 WEB_SITE="http://infozip.sourceforge.net/"
slaxemulator@6522 11 WGET_URL="$SF_MIRROR/infozip/$TARBALL"
jozee@4974 12 TAGS="archive compression"
pascal@920 13
pascal@24102 14 current_version()
pascal@24102 15 {
pascal@24102 16 wget -O - $WEB_SITE/UnZip.html 2>/dev/null | \
pascal@24102 17 sed '/released/!d;s|.*Zip ||;s|<.*||;q'
pascal@24102 18 }
pascal@24102 19
pascal@920 20 # Rules to configure and make the package.
pascal@920 21 compile_rules()
pascal@920 22 {
pascal@20212 23 sed -i 's|uname -m|echo i486|' beos/Makefile
al@19001 24 ln -sf $WOK/$PACKAGE/$PACKAGE${VERSION//./} $WOK/$PACKAGE/$PACKAGE-$VERSION
al@19001 25
pascal@920 26 make -f unix/Makefile generic
pascal@15601 27 make -f unix/Makefile prefix=$DESTDIR install
pascal@920 28 }
pascal@920 29
pascal@920 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@920 31 genpkg_rules()
pascal@920 32 {
slaxemulator@7236 33 mkdir -p $fs/usr
pascal@15601 34 cp -a $install/bin $fs/usr/bin
pascal@920 35 }
pascal@920 36
rcx@3692 37 # Remove Busybox symlink before installing
rcx@3692 38 pre_install()
rcx@3692 39 {
pascal@18730 40 rm -f "$1/usr/bin/unzip"
rcx@3692 41 }
rcx@3692 42
rcx@3692 43 post_remove()
rcx@3692 44 {
rcx@3693 45 ln -s /bin/busybox /usr/bin/unzip
rcx@3692 46 }