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

Up bzip3 (1.5.2), dropbear (2025.88), tinyssh (20250501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 06 06:34:03 2025 +0000 (2 weeks ago)
parents 15650f5d595b
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"
pascal@25703 9 WEB_SITE="https://metacpan.org/dist/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@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|.*-||;s|<.*||;q'
pascal@24102 23 }
pascal@24102 24
pankso@18 25 # Rules to configure and make the package.
pankso@18 26 compile_rules()
pankso@18 27 {
pascal@1511 28 perl Makefile.PL &&
pascal@1511 29 make &&
pascal@14702 30 make DESTDIR=$DESTDIR install
pankso@18 31 }
pankso@18 32
pankso@18 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 34 genpkg_rules()
pankso@18 35 {
pankso@18 36 mkdir -p $fs/usr
Hans-G?nter@23417 37 cp -a $install/usr/lib $fs/usr
pankso@18 38 }