wok annotate perl-http-daemon/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 446a6ea2fc34
children 2c71c00621d5
rev   line source
erjo@12228 1 # SliTaz package receipt.
erjo@12228 2
erjo@12228 3 PACKAGE="perl-http-daemon"
Hans-G?nter@23343 4 VERSION="6.06"
erjo@12228 5 CATEGORY="development"
Hans-G?nter@23343 6 SHORT_DESC="A Perl simple http server class."
erjo@12228 7 MAINTAINER="erjo@slitaz.org"
pascal@14702 8 LICENSE="GPL"
Hans-G?nter@23343 9 WEB_SITE="https://metacpan.org/release/HTTP-Daemon"
Hans-G?nter@23343 10
erjo@12228 11 SOURCE="HTTP-Daemon"
erjo@12228 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23343 13 WGET_URL="https://www.cpan.org/modules/by-module/HTTP/$TARBALL"
erjo@12228 14
erjo@12230 15 DEPENDS="perl perl-http-date perl-http-message perl-lwp-mediatypes"
erjo@12228 16 BUILD_DEPENDS="perl $DEPENDS"
erjo@12228 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@12228 24 # Rules to configure and make the package.
erjo@12228 25 compile_rules()
erjo@12228 26 {
Hans-G?nter@23343 27 perl Makefile.PL &&
Hans-G?nter@23343 28 make &&
Hans-G?nter@23343 29 make DESTDIR=$DESTDIR install
erjo@12228 30 }
erjo@12228 31
erjo@12228 32 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@12228 33 genpkg_rules()
erjo@12228 34 {
erjo@12228 35 mkdir -p $fs/usr
Hans-G?nter@23343 36 cp -a $install/usr/lib $fs/usr
erjo@12228 37 }