wok view ipcalc/receipt @ rev 25710
typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 25 12:42:06 2024 +0000 (4 months ago) |
parents | de49f29b101e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ipcalc"
4 VERSION="0.41"
5 CATEGORY="network"
6 SHORT_DESC="IP Calculator."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://jodies.de/ipcalc"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://jodies.de/ipcalc-archive/$TARBALL"
13 DEPENDS="perl"
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $fs/var/www/cgi-bin/ipcalc $fs/usr/share/images/ipcalc
27 cp -a $src/ipcalc $fs/usr/bin
28 cp -a $src/ipcalc.cgi $fs/var/www/cgi-bin/ipcalc
29 cp -a $src/ipcalc.gif $fs/usr/share/images/ipcalc
30 cp -a $src/ipcalculator.png $fs/usr/share/images/ipcalc
31 }