wok-current annotate perl-digest-md5/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 | 05720858b59a |
children | 7a6e7ca4947b |
rev | line source |
---|---|
erjo@11833 | 1 # SliTaz package receipt. |
erjo@11833 | 2 |
erjo@11833 | 3 PACKAGE="perl-digest-md5" |
Hans-G?nter@23319 | 4 VERSION="2.55" |
erjo@11833 | 5 CATEGORY="development" |
Hans-G?nter@23319 | 6 SHORT_DESC="Perl extension Digest::MD5::Perl - Perl implementation of Ron Rivests MD5 Algorithm." |
slaxemulator@11838 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14702 | 8 LICENSE="GPL" |
pascal@20671 | 9 WEB_SITE="https://metacpan.org/release/Digest-MD5" |
Hans-G?nter@23319 | 10 |
slaxemulator@11838 | 11 SOURCE="Digest-MD5" |
slaxemulator@11838 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23319 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Digest/$TARBALL" |
slaxemulator@11838 | 14 |
erjo@11833 | 15 DEPENDS="perl" |
erjo@11833 | 16 BUILD_DEPENDS="perl" |
erjo@11833 | 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 |
erjo@11833 | 24 # Rules to configure and make the package. |
erjo@11833 | 25 compile_rules() |
erjo@11833 | 26 { |
erjo@11833 | 27 perl Makefile.PL && |
erjo@11833 | 28 make && |
slaxemulator@11838 | 29 make DESTDIR=$DESTDIR install |
erjo@11833 | 30 } |
erjo@11833 | 31 |
erjo@11833 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11833 | 33 genpkg_rules() |
erjo@11833 | 34 { |
erjo@11833 | 35 mkdir -p $fs/usr |
Hans-G?nter@23319 | 36 cp -a $install/usr/lib $fs/usr |
erjo@11833 | 37 } |