wok-current annotate perl-net-xwhois/receipt @ rev 24909
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 09 14:28:38 2022 +0000 (2022-04-09) |
parents | 20661c276bcf |
children | e717a4953b0e |
rev | line source |
---|---|
pascal@5204 | 1 # SliTaz package receipt. |
pascal@5204 | 2 |
pascal@5204 | 3 PACKAGE="perl-net-xwhois" |
pascal@5204 | 4 VERSION="0.90" |
pascal@5204 | 5 CATEGORY="development" |
pascal@5204 | 6 SHORT_DESC="Net::XWhois module is a Perl extension." |
pascal@5204 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
pascal@5204 | 9 DEPENDS="perl" |
pascal@5204 | 10 BUILD_DEPENDS="perl" |
pascal@5204 | 11 SOURCE="Net-XWhois" |
pascal@5204 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24103 | 13 WEB_SITE="https://metacpan.org/dist/Net-XWhois" |
pascal@20682 | 14 WGET_URL="https://metacpan.org/CPAN/authors/id/V/VI/VIPUL/$TARBALL" |
pascal@5204 | 15 |
pascal@24103 | 16 current_version() |
pascal@24103 | 17 { |
pascal@24103 | 18 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24103 | 19 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24103 | 20 } |
pascal@24103 | 21 |
pascal@5204 | 22 # Rules to configure and make the package. |
pascal@5204 | 23 compile_rules() |
pascal@5204 | 24 { |
pascal@5204 | 25 mv $SOURCE $src 2> /dev/null |
pascal@5204 | 26 cd $src |
pascal@5204 | 27 perl Makefile.PL && |
pascal@5204 | 28 make && |
pascal@14702 | 29 make DESTDIR=$DESTDIR install |
pascal@5204 | 30 } |
pascal@5204 | 31 |
pascal@5204 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5204 | 33 genpkg_rules() |
pascal@5204 | 34 { |
pascal@5204 | 35 mkdir -p $fs/usr |
pascal@14702 | 36 cp -a $install/usr/lib $fs/usr |
pascal@5204 | 37 } |
pascal@5204 | 38 |