wok-next annotate unzip/receipt @ rev 18925
description.txt should end with 0x0A byte (Carriage Return, Enter) to not glue with the next description in descriptions.txt.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Feb 25 15:02:38 2016 +0200 (2016-02-25) |
parents | 23c3aed67cd9 |
children | 762b649a4d73 |
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" |
slaxemulator@6522 | 9 TARBALL="unzip60.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 { |
slaxemulator@6522 | 17 ln -sf $WOK/$PACKAGE/unzip60 $WOK/$PACKAGE/$PACKAGE-$VERSION |
pascal@920 | 18 cd $src |
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 } |