wok annotate perl-html-tree/receipt @ rev 24383
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 06 11:51:57 2022 +0000 (2022-02-06) |
parents | 81ed41f7cbdf |
children | 0af8df0b46fc |
rev | line source |
---|---|
slaxemulator@9296 | 1 # SliTaz package receipt. |
slaxemulator@9296 | 2 |
slaxemulator@9296 | 3 PACKAGE="perl-html-tree" |
Hans-G?nter@23341 | 4 VERSION="5.07" |
slaxemulator@9296 | 5 CATEGORY="development" |
Hans-G?nter@23341 | 6 SHORT_DESC="Perl extension HTML::Tree." |
slaxemulator@9296 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23341 | 9 WEB_SITE="https://metacpan.org/release/HTML-Tree" |
Hans-G?nter@23341 | 10 |
Hans-G?nter@23341 | 11 SOURCE="HTML-Tree" |
Hans-G?nter@23341 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23341 | 13 WGET_URL="https://www.cpan.org/modules/by-module/HTML/$TARBALL" |
Hans-G?nter@23341 | 14 |
slaxemulator@9296 | 15 DEPENDS="perl perl-html-parser perl-html-tagset" |
slaxemulator@9296 | 16 BUILD_DEPENDS="perl perl-html-parser perl-html-tagset" |
slaxemulator@9296 | 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@9296 | 24 # Rules to configure and make the package. |
slaxemulator@9296 | 25 compile_rules() |
slaxemulator@9296 | 26 { |
Hans-G?nter@23341 | 27 perl Build.PL 2>&1 | sed '/WARNINGS/d' && |
Hans-G?nter@23341 | 28 ./Build && |
Hans-G?nter@23341 | 29 ./Build --destdir $DESTDIR install |
slaxemulator@9296 | 30 } |
slaxemulator@9296 | 31 |
slaxemulator@9296 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9296 | 33 genpkg_rules() |
slaxemulator@9296 | 34 { |
slaxemulator@9296 | 35 mkdir -p $fs/usr |
Hans-G?nter@23341 | 36 cp -a $install/usr/lib $fs/usr |
slaxemulator@9296 | 37 } |