wok-current annotate unzip/receipt @ rev 3692
Update: unzip (handle BusyBox symlinks)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Thu Jul 16 09:04:19 2009 +0000 (2009-07-16) |
parents | 7dacb27857cf |
children | 5b0b131c3480 |
rev | line source |
---|---|
pascal@920 | 1 # SliTaz package receipt. |
pascal@920 | 2 |
pascal@920 | 3 PACKAGE="unzip" |
pascal@920 | 4 VERSION="5.52" |
pascal@920 | 5 CATEGORY="system-tools" |
pascal@920 | 6 SHORT_DESC="Zip dearchiver." |
pascal@920 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@920 | 8 TARBALL="unzip552.tar.gz" |
pascal@920 | 9 WEB_SITE="http://www.info-zip.org/" |
pascal@920 | 10 WGET_URL="ftp://tug.ctan.org/tex-archive/tools/zip/info-zip/src/$TARBALL" |
pascal@920 | 11 |
pascal@920 | 12 # Rules to configure and make the package. |
pascal@920 | 13 compile_rules() |
pascal@920 | 14 { |
pascal@920 | 15 cd $src |
pascal@920 | 16 make -f unix/Makefile generic |
pascal@920 | 17 make -f unix/Makefile prefix=$PWD/_pkg install |
pascal@920 | 18 } |
pascal@920 | 19 |
pascal@920 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@920 | 21 genpkg_rules() |
pascal@920 | 22 { |
pascal@920 | 23 mkdir -p $fs/usr/bin |
pascal@920 | 24 cp -a $_pkg/bin/unzip $fs/usr/bin |
pascal@920 | 25 } |
pascal@920 | 26 |
rcx@3692 | 27 # Remove Busybox symlink before installing |
rcx@3692 | 28 pre_install() |
rcx@3692 | 29 { |
rcx@3692 | 30 rm -f $1/bin/unzip |
rcx@3692 | 31 } |
rcx@3692 | 32 |
rcx@3692 | 33 post_remove() |
rcx@3692 | 34 { |
rcx@3692 | 35 ln -s /bin/busybox /bin/unzip |
rcx@3692 | 36 } |