wok-6.x annotate perl-preadsheet-parseexcel/receipt @ rev 24313
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 21 10:59:24 2022 +0000 (2022-01-21) |
parents | ca4a422cce07 |
children |
rev | line source |
---|---|
pascal@1608 | 1 # SliTaz package receipt. |
pascal@1608 | 2 |
pascal@1608 | 3 PACKAGE="perl-preadsheet-parseexcel" |
Hans-G?nter@24249 | 4 VERSION="0.65" |
pascal@1608 | 5 CATEGORY="development" |
pascal@1608 | 6 SHORT_DESC="Spreadsheet::ParseExcel module is a Perl extension." |
pascal@1608 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@24249 | 9 WEB_SITE="https://metacpan.org/pod/Spreadsheet::ParseExcel" |
Hans-G?nter@24249 | 10 REPOLOGY="perl:spreadsheet-parseexcel" |
Hans-G?nter@24249 | 11 |
Hans-G?nter@24249 | 12 SOURCE="Spreadsheet-ParseExcel" |
Hans-G?nter@24249 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24249 | 14 WGET_URL="https://www.cpan.org/modules/by-module/Spreadsheet/$TARBALL" |
Hans-G?nter@24249 | 15 |
pascal@1608 | 16 DEPENDS="perl" |
pascal@1608 | 17 BUILD_DEPENDS="perl" |
pascal@1608 | 18 |
pascal@24103 | 19 current_version() |
pascal@24103 | 20 { |
pascal@24103 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24103 | 22 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24103 | 23 } |
pascal@24103 | 24 |
pascal@1608 | 25 # Rules to configure and make the package. |
pascal@1608 | 26 compile_rules() |
pascal@1608 | 27 { |
Hans-G?nter@24249 | 28 perl Makefile.PL && |
Hans-G?nter@24249 | 29 make && |
Hans-G?nter@24249 | 30 make install DESTDIR=$DESTDIR |
pascal@1608 | 31 } |
pascal@1608 | 32 |
pascal@1608 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1608 | 34 genpkg_rules() |
pascal@1608 | 35 { |
Hans-G?nter@24249 | 36 cook_copy_folders lib |
pascal@1608 | 37 } |