wok-current view unzip/receipt @ rev 25470

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 07 10:48:59 2022 +0000 (2022-10-07)
parents 7dd01dedad38
children 5926178cd6fa
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="https://infozip.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/infozip/$TARBALL"
12 TAGS="archive compression"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/UnZip.html 2>/dev/null | \
18 sed '/released/!d;s|.*Zip ||;s|<.*||;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|uname -m|echo i486|' beos/Makefile
25 ln -sf $WOK/$PACKAGE/$PACKAGE${VERSION//./} $WOK/$PACKAGE/$PACKAGE-$VERSION
27 make -f unix/Makefile generic
28 make -f unix/Makefile prefix=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/bin $fs/usr/bin
36 }
38 # Remove Busybox symlink before installing
39 pre_install()
40 {
41 rm -f "$1/usr/bin/unzip"
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox /usr/bin/unzip
47 }