wok annotate perl-xml-parser/receipt @ rev 24304

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 11:01:52 2022 +0000 (2022-01-17)
parents 8ea372e859d2
children 0af8df0b46fc
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="perl-xml-parser"
Hans-G?nter@23414 4 VERSION="2.46"
pankso@204 5 CATEGORY="development"
Hans-G?nter@23414 6 SHORT_DESC="Perl extension XML::Parser is an interface to XML expat."
pankso@18 7 MAINTAINER="pankso@slitaz.org"
pascal@14702 8 LICENSE="GPL"
Hans-G?nter@23414 9 WEB_SITE="https://metacpan.org/release/XML-Parser/"
Hans-G?nter@23414 10
pankso@18 11 SOURCE="XML-Parser"
pankso@18 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23414 13 WGET_URL="https://www.cpan.org/modules/by-module/XML/$TARBALL"
Hans-G?nter@23414 14
Hans-G?nter@23414 15 DEPENDS="expat perl"
Hans-G?nter@23414 16 BUILD_DEPENDS="expat-dev perl"
Hans-G?nter@23414 17
pascal@19099 18 HOST_ARCH="i486 arm"
pankso@18 19
pascal@24102 20 current_version()
pascal@24102 21 {
pascal@24102 22 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 23 sed '/release-name/!d;s|.*-||;s|<.*||;q'
pascal@24102 24 }
pascal@24102 25
pankso@18 26 # Rules to configure and make the package.
pankso@18 27 compile_rules()
pankso@18 28 {
pascal@2457 29 perl Makefile.PL &&
pascal@2457 30 make &&
pascal@14702 31 make DESTDIR=$DESTDIR install
pankso@18 32 }
pankso@18 33
pankso@18 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 35 genpkg_rules()
pankso@18 36 {
pankso@18 37 mkdir -p $fs/usr
Hans-G?nter@23414 38 cp -a $install/usr/lib $fs/usr
pankso@18 39 }