wok-current annotate perl-date-calc/receipt @ rev 25444
Up firefox-official (104.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 04 18:56:05 2022 +0000 (2022-09-04) |
parents | 79c552882a84 |
children |
rev | line source |
---|---|
slaxemulator@10173 | 1 # SliTaz package receipt. |
slaxemulator@10173 | 2 |
slaxemulator@10173 | 3 PACKAGE="perl-date-calc" |
Hans-G?nter@23307 | 4 VERSION="6.4" |
slaxemulator@10173 | 5 CATEGORY="development" |
Hans-G?nter@23307 | 6 SHORT_DESC="Perl extension Date::Calc for Gregorian calendar date calculations." |
slaxemulator@10173 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23307 | 9 WEB_SITE="https://metacpan.org/release/Date-Calc/" |
Hans-G?nter@23307 | 10 |
Hans-G?nter@23307 | 11 SOURCE="Date-Calc" |
Hans-G?nter@23307 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23307 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Date/$TARBALL" |
Hans-G?nter@23307 | 14 |
slaxemulator@10173 | 15 DEPENDS="perl perl-bit-vector" |
slaxemulator@10173 | 16 BUILD_DEPENDS="$DEPENDS" |
slaxemulator@10173 | 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 |
slaxemulator@10173 | 24 # Rules to configure and make the package. |
slaxemulator@10173 | 25 compile_rules() |
slaxemulator@10173 | 26 { |
slaxemulator@10173 | 27 perl Makefile.PL && |
slaxemulator@10173 | 28 make && |
slaxemulator@10173 | 29 make install DESTDIR=$DESTDIR |
slaxemulator@10173 | 30 } |
slaxemulator@10173 | 31 |
slaxemulator@10173 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10173 | 33 genpkg_rules() |
slaxemulator@10173 | 34 { |
slaxemulator@10173 | 35 mkdir -p $fs/usr |
Hans-G?nter@23307 | 36 cp -a $install/usr/lib $fs/usr |
slaxemulator@10173 | 37 } |