wok view perl-datetime/receipt @ rev 24102

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