wok annotate perl-xml-simple/receipt @ rev 25097

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 18 20:27:19 2022 +0000 (23 months ago)
parents ec25a353c584
children
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="perl-xml-simple"
Hans-G?nter@23417 4 VERSION="2.25"
pankso@204 5 CATEGORY="development"
Hans-G?nter@23417 6 SHORT_DESC="Perl extension XML::Simple is used to read and write XML."
pankso@18 7 MAINTAINER="pankso@slitaz.org"
pascal@14702 8 LICENSE="GPL"
Hans-G?nter@23417 9 WEB_SITE="https://metacpan.org/release/XML-Simple"
Hans-G?nter@23417 10
Hans-G?nter@23417 11 SOURCE="XML-Simple"
Hans-G?nter@23417 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23417 13 WGET_URL="https://www.cpan.org/modules/by-module/XML/$TARBALL"
Hans-G?nter@23417 14
pankso@18 15 DEPENDS="perl"
pascal@1511 16 BUILD_DEPENDS="perl"
pankso@18 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|.*-||;s|<.*||;q'
pascal@24102 22 }
pascal@24102 23
pankso@18 24 # Rules to configure and make the package.
pankso@18 25 compile_rules()
pankso@18 26 {
pascal@1511 27 perl Makefile.PL &&
pascal@1511 28 make &&
pascal@14702 29 make DESTDIR=$DESTDIR install
pankso@18 30 }
pankso@18 31
pankso@18 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 33 genpkg_rules()
pankso@18 34 {
pankso@18 35 mkdir -p $fs/usr
Hans-G?nter@23417 36 cp -a $install/usr/lib $fs/usr
pankso@18 37 }