wok annotate perl-sub-identify/receipt @ rev 25558
Up libqcow (20221124)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 24 09:03:56 2023 +0000 (20 months ago) |
parents | 092704d51019 |
children |
rev | line source |
---|---|
pascal@20470 | 1 # SliTaz package receipt. |
pascal@20470 | 2 |
pascal@20470 | 3 PACKAGE="perl-sub-identify" |
pascal@20470 | 4 VERSION="0.14" |
pascal@20470 | 5 CATEGORY="development" |
pascal@20470 | 6 SHORT_DESC="Sub::Identify module is a Perl extension." |
pascal@20470 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20470 | 8 LICENSE="GPL" |
pascal@20470 | 9 DEPENDS="perl" |
pascal@20470 | 10 BUILD_DEPENDS="perl" |
pascal@20470 | 11 SOURCE="Sub-Identify" |
pascal@20470 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24103 | 13 WEB_SITE="https://metacpan.org/dist/Sub-Identify" |
pascal@20470 | 14 WGET_URL="https://cpan.metacpan.org/authors/id/R/RG/RGARCIA/$TARBALL" |
pascal@20470 | 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@20470 | 22 # Rules to configure and make the package. |
pascal@20470 | 23 compile_rules() |
pascal@20470 | 24 { |
pascal@20470 | 25 perl Makefile.PL && |
pascal@20470 | 26 make && |
pascal@20470 | 27 make DESTDIR=$DESTDIR install |
pascal@20470 | 28 } |
pascal@20470 | 29 |
pascal@20470 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20470 | 31 genpkg_rules() |
pascal@20470 | 32 { |
pascal@20470 | 33 mkdir -p $fs/usr |
pascal@20470 | 34 cp -a $install/usr/lib $fs/usr |
pascal@20470 | 35 } |