wok-6.x annotate perl-convert-asn1/receipt @ rev 24103

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 17 14:12:38 2021 +0000 (2021-09-17)
parents c42cba083aa8
children 047f73e7e39e
rev   line source
pascal@1664 1 # SliTaz package receipt.
pascal@1664 2
pascal@1664 3 PACKAGE="perl-convert-asn1"
Hans-G?nter@23304 4 VERSION="0.27"
pascal@1664 5 CATEGORY="development"
Hans-G?nter@23304 6 SHORT_DESC="Perl extension Convert::ASN1."
pascal@1664 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14702 8 LICENSE="GPL"
pascal@24103 9 WEB_SITE="https://metacpan.org/dist/Convert-ASN1"
Hans-G?nter@23304 10
Hans-G?nter@23304 11 SOURCE="Convert-ASN1"
Hans-G?nter@23304 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23304 13 WGET_URL="https://www.cpan.org/modules/by-module/Convert/$TARBALL"
Hans-G?nter@23304 14
pascal@1664 15 DEPENDS="perl"
pascal@1664 16 BUILD_DEPENDS="perl"
pascal@1664 17
pascal@24103 18 current_version()
pascal@24103 19 {
pascal@24103 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24103 21 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24103 22 }
pascal@24103 23
pascal@1664 24 # Rules to configure and make the package.
pascal@1664 25 compile_rules()
pascal@1664 26 {
pascal@1664 27 perl Makefile.PL &&
pascal@1664 28 make &&
pascal@14702 29 make DESTDIR=$DESTDIR install
pascal@1664 30 }
pascal@1664 31
pascal@1664 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1664 33 genpkg_rules()
pascal@1664 34 {
pascal@1664 35 mkdir -p $fs/usr
Hans-G?nter@23304 36 cp -a $install/usr/lib $fs/usr
pascal@1664 37 }