wok-current annotate whois/receipt @ rev 24980
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 09:19:55 2022 +0000 (2022-05-08) |
parents | 922f061231c2 |
children | d644f4cecfbf |
rev | line source |
---|---|
slaxemulator@7454 | 1 # SliTaz package receipt. |
slaxemulator@7454 | 2 |
slaxemulator@7454 | 3 PACKAGE="whois" |
Hans-G?nter@23732 | 4 VERSION="5.5.6" |
slaxemulator@7454 | 5 CATEGORY="network" |
Hans-G?nter@22128 | 6 SHORT_DESC="The whois client by Marco d'Itri." |
slaxemulator@7454 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15363 | 8 LICENSE="GPL2" |
Hans-G?nter@22128 | 9 WEB_SITE="https://www.linux.it/~md/software/" |
Hans-G?nter@22128 | 10 |
Hans-G?nter@22128 | 11 TARBALL="${PACKAGE}_${VERSION}.tar.xz" |
pascal@24976 | 12 WGET_URL="https://github.com/rfc1036/whois/archive/v$VERSION.tar.gz" |
slaxemulator@7454 | 13 |
pascal@15363 | 14 DEPENDS="libidn" |
pascal@15363 | 15 BUILD_DEPENDS="libidn-dev perl" |
pascal@15363 | 16 |
pascal@24304 | 17 # What is the latest version available today? |
pascal@24304 | 18 current_version() |
pascal@24304 | 19 { |
pascal@24304 | 20 wget -O - https://github.com/rfc1036/whois/tags 2>/dev/null | \ |
pascal@24304 | 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24304 | 22 } |
pascal@24304 | 23 |
slaxemulator@7454 | 24 # Rules to configure and make the package. |
slaxemulator@7454 | 25 compile_rules() |
slaxemulator@7454 | 26 { |
Hans-G?nter@23732 | 27 make prefix=/usr && |
pascal@15363 | 28 make prefix=/usr BASEDIR=$DESTDIR install-whois |
slaxemulator@7454 | 29 } |
slaxemulator@7454 | 30 |
slaxemulator@7454 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7454 | 32 genpkg_rules() |
slaxemulator@7454 | 33 { |
slaxemulator@7454 | 34 mkdir -p $fs/usr |
Hans-G?nter@23732 | 35 cp -a $install/usr/bin $fs/usr |
slaxemulator@7454 | 36 } |