wok-6.x view unzip/receipt @ rev 24329

updated at (3.1.23 -> 3.2.2)
author Hans-G?nter Theisgen
date Thu Jan 27 14:44:44 2022 +0100 (2022-01-27)
parents 56ee356284c6
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="unzip"
4 VERSION="6.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Zip dearchiver."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 TARBALL="$PACKAGE${VERSION//./}.tar.gz"
10 WEB_SITE="http://infozip.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/infozip/$TARBALL"
12 TAGS="archive compression"
14 current_version()
15 {
16 wget -O - $WEB_SITE/UnZip.html 2>/dev/null | \
17 sed '/released/!d;s|.*Zip ||;s|<.*||;q'
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 sed -i 's|uname -m|echo i486|' beos/Makefile
24 ln -sf $WOK/$PACKAGE/$PACKAGE${VERSION//./} $WOK/$PACKAGE/$PACKAGE-$VERSION
26 make -f unix/Makefile generic
27 make -f unix/Makefile prefix=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $install/bin $fs/usr/bin
35 }
37 # Remove Busybox symlink before installing
38 pre_install()
39 {
40 rm -f "$1/usr/bin/unzip"
41 }
43 post_remove()
44 {
45 ln -s /bin/busybox /usr/bin/unzip
46 }