wok annotate perl-super/receipt @ rev 25097
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 18 20:27:19 2022 +0000 (2022-06-18) |
parents | 73b741ce9402 |
children | 0af8df0b46fc |
rev | line source |
---|---|
pascal@20470 | 1 # SliTaz package receipt. |
pascal@20470 | 2 |
pascal@20470 | 3 PACKAGE="perl-super" |
Hans-G?nter@23391 | 4 VERSION="1.20190531" |
pascal@20470 | 5 CATEGORY="development" |
Hans-G?nter@23391 | 6 SHORT_DESC="Perl extension SUPER." |
pascal@20470 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20470 | 8 LICENSE="GPL" |
Hans-G?nter@23391 | 9 WEB_SITE="https://metacpan.org/release/SUPER" |
Hans-G?nter@23391 | 10 |
Hans-G?nter@23391 | 11 SOURCE="SUPER" |
Hans-G?nter@23391 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23391 | 13 WGET_URL="https://www.cpan.org/modules/by-module/SUPER/$TARBALL" |
Hans-G?nter@23391 | 14 |
pascal@20470 | 15 DEPENDS="perl" |
pascal@20470 | 16 BUILD_DEPENDS="$DEPENDS" |
pascal@20470 | 17 |
pascal@24102 | 18 current_version() |
pascal@24102 | 19 { |
pascal@24102 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 21 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 22 } |
pascal@24102 | 23 |
pascal@20470 | 24 # Rules to configure and make the package. |
pascal@20470 | 25 compile_rules() |
pascal@20470 | 26 { |
pascal@20470 | 27 perl Makefile.PL && |
pascal@20470 | 28 make && |
pascal@20470 | 29 make DESTDIR=$DESTDIR install |
pascal@20470 | 30 } |
pascal@20470 | 31 |
pascal@20470 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20470 | 33 genpkg_rules() |
pascal@20470 | 34 { |
pascal@20470 | 35 mkdir -p $fs/usr |
Hans-G?nter@23391 | 36 cp -a $install/usr/lib $fs/usr |
pascal@20470 | 37 } |