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