wok annotate unzip/receipt @ rev 19488

Update SliTaz projects: slitaz-base-files (312), slitaz-configs (295), slitaz-doc (158), slitaz-tools (1004), tazinst (83), tazlito (439), tazpanel (606), tazpkg (927), tazusb (192), tazweb (172).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 12 13:09:26 2016 +0200 (2016-11-12)
parents 9e01bc6321ea
children 3705d68ed8f3
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@920 10 WEB_SITE="http://www.info-zip.org/"
slaxemulator@6522 11 WGET_URL="$SF_MIRROR/infozip/$TARBALL"
jozee@4974 12 TAGS="archive compression"
pascal@920 13
pascal@920 14 # Rules to configure and make the package.
pascal@920 15 compile_rules()
pascal@920 16 {
al@19001 17 ln -sf $WOK/$PACKAGE/$PACKAGE${VERSION//./} $WOK/$PACKAGE/$PACKAGE-$VERSION
al@19001 18
pascal@920 19 make -f unix/Makefile generic
pascal@15601 20 make -f unix/Makefile prefix=$DESTDIR install
pascal@920 21 }
pascal@920 22
pascal@920 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@920 24 genpkg_rules()
pascal@920 25 {
slaxemulator@7236 26 mkdir -p $fs/usr
pascal@15601 27 cp -a $install/bin $fs/usr/bin
pascal@920 28 }
pascal@920 29
rcx@3692 30 # Remove Busybox symlink before installing
rcx@3692 31 pre_install()
rcx@3692 32 {
pascal@18730 33 rm -f "$1/usr/bin/unzip"
rcx@3692 34 }
rcx@3692 35
rcx@3692 36 post_remove()
rcx@3692 37 {
rcx@3693 38 ln -s /bin/busybox /usr/bin/unzip
rcx@3692 39 }