wok-6.x view perl-datetime/receipt @ rev 24299

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 15 15:21:40 2022 +0000 (2022-01-15)
parents 15650f5d595b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-datetime"
4 VERSION="1.55"
5 CATEGORY="development"
6 SHORT_DESC="Perl extension DateTime."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/pod/DateTime"
10 REPOLOGY="perl:datetime"
12 SOURCE="DateTime"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://www.cpan.org/modules/by-module/DateTime/$TARBALL"
16 DEPENDS="perl perl-class-singleton perl-datetime-locale
17 perl-datetime-timezone perl-exporter-tiny perl-list-moreutils
18 perl-math-round perl-params-validate perl-test-exception
19 perl-test-fatal perl-test-simple perl-test-warnings
20 perl-try-tiny"
21 BUILD_DEPENDS="$DEPENDS"
23 current_version()
24 {
25 wget -O - $WEB_SITE 2>/dev/null | \
26 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 perl Makefile.PL &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders lib
41 }