wok-6.x annotate perl-netaddr-ip/receipt @ rev 24348
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 02 18:01:43 2022 +0000 (2022-02-02) |
parents | 3dedb87012b8 |
children |
rev | line source |
---|---|
pascal@22340 | 1 # SliTaz package receipt. |
pascal@22340 | 2 |
pascal@22340 | 3 PACKAGE="perl-netaddr-ip" |
pascal@22340 | 4 VERSION="4.079" |
pascal@22340 | 5 CATEGORY="development" |
pascal@22340 | 6 SHORT_DESC="NetAddr::IP module is a Perl extension." |
pascal@22340 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@22340 | 8 LICENSE="Artistic" |
pascal@22340 | 9 DEPENDS="perl" |
pascal@22340 | 10 BUILD_DEPENDS="perl" |
pascal@22340 | 11 SOURCE="NetAddr-IP" |
pascal@22340 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24103 | 13 WEB_SITE="https://metacpan.org/dist/NetAddr-IP" |
pascal@22340 | 14 WGET_URL="https://cpan.metacpan.org/authors/id/M/MI/MIKER/$TARBALL" |
pascal@22340 | 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@22340 | 22 # Rules to configure and make the package. |
pascal@22340 | 23 compile_rules() |
pascal@22340 | 24 { |
pascal@22340 | 25 perl Makefile.PL && |
pascal@22340 | 26 make && |
pascal@22340 | 27 make DESTDIR=$DESTDIR install |
pascal@22340 | 28 } |
pascal@22340 | 29 |
pascal@22340 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@22340 | 31 genpkg_rules() |
pascal@22340 | 32 { |
pascal@22340 | 33 cp -a $install/usr $fs/ |
pascal@22340 | 34 } |