wok-current annotate perl-event/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 | b5e38f28d371 |
children | 81bba537d500 |
rev | line source |
---|---|
pascal@17380 | 1 # SliTaz package receipt. |
pascal@17380 | 2 |
pascal@17380 | 3 PACKAGE="perl-event" |
Hans-G?nter@23321 | 4 VERSION="1.27" |
pascal@17380 | 5 CATEGORY="development" |
Hans-G?nter@23321 | 6 SHORT_DESC="Perl extension Event." |
pascal@17380 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18334 | 8 LICENSE="unknown" |
Hans-G?nter@23321 | 9 WEB_SITE="https://metacpan.org/release/Event" |
Hans-G?nter@23321 | 10 |
pascal@17380 | 11 SOURCE="Event" |
pascal@17380 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23321 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Event/$TARBALL" |
Hans-G?nter@23321 | 14 |
pascal@17380 | 15 SUGGESTED="perl-time-hires" |
pascal@17380 | 16 DEPENDS="perl" |
pascal@17380 | 17 BUILD_DEPENDS="perl" |
pascal@17380 | 18 |
pascal@24102 | 19 current_version() |
pascal@24102 | 20 { |
pascal@24102 | 21 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 22 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 23 } |
pascal@24102 | 24 |
pascal@17380 | 25 # Rules to configure and make the package. |
pascal@17380 | 26 compile_rules() |
pascal@17380 | 27 { |
Hans-G?nter@23321 | 28 perl Makefile.PL && |
Hans-G?nter@23321 | 29 make && |
pascal@17380 | 30 make DESTDIR=$DESTDIR install |
pascal@17380 | 31 } |
pascal@17380 | 32 |
pascal@17380 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17380 | 34 genpkg_rules() |
pascal@17380 | 35 { |
pascal@17380 | 36 mkdir -p $fs/usr |
Hans-G?nter@23321 | 37 cp -a $install/usr/lib $fs/usr |
pascal@17380 | 38 } |