wok annotate perl-html-tree/receipt @ rev 25862

Up slitaz-base-files (344)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 27 13:46:27 2025 +0000 (44 hours ago)
parents 15650f5d595b
children
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"
pascal@25703 9 WEB_SITE="https://metacpan.org/dist/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@25703 18 # What is the latest version available today?
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
slaxemulator@9296 25 # Rules to configure and make the package.
slaxemulator@9296 26 compile_rules()
slaxemulator@9296 27 {
Hans-Günter@23341 28 perl Build.PL 2>&1 | sed '/WARNINGS/d' &&
Hans-Günter@23341 29 ./Build &&
Hans-Günter@23341 30 ./Build --destdir $DESTDIR install
slaxemulator@9296 31 }
slaxemulator@9296 32
slaxemulator@9296 33 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9296 34 genpkg_rules()
slaxemulator@9296 35 {
slaxemulator@9296 36 mkdir -p $fs/usr
Hans-Günter@23341 37 cp -a $install/usr/lib $fs/usr
slaxemulator@9296 38 }