wok annotate perl-smtp-ssl/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 20661c276bcf
children 1e0249731b58
rev   line source
rocky@7864 1 # SliTaz package receipt.
rocky@7864 2
rocky@7864 3 PACKAGE="perl-smtp-ssl"
rocky@7864 4 VERSION="1.01"
rocky@7864 5 CATEGORY="development"
rocky@7864 6 SHORT_DESC="SSL support for Net::SMTP."
rocky@7864 7 MAINTAINER="rocky@slitaz.org"
pascal@14702 8 LICENSE="GPL"
rocky@7864 9 DEPENDS="perl perl-io-socket-ssl perl-net-ssleay perl-mime-base64 perl-authen-sasl"
rocky@7864 10 BUILD_DEPENDS="perl"
rocky@7864 11 SOURCE="Net-SMTP-SSL"
rocky@7864 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24103 13 WEB_SITE="https://metacpan.org/dist/Net-SMTP-SSL"
pascal@20682 14 WGET_URL="https://metacpan.org/CPAN/authors/id/C/CW/CWEST/$TARBALL"
rocky@7864 15
pascal@24103 16 current_version()
pascal@24103 17 {
pascal@24103 18 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24103 19 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24103 20 }
pascal@24103 21
rocky@7864 22 # Rules to configure and make the package.
rocky@7864 23 compile_rules()
rocky@7864 24 {
rocky@7864 25 cd $src
rocky@7864 26 yes n | perl Makefile.PL &&
rocky@7864 27 make &&
pascal@14702 28 make DESTDIR=$DESTDIR install
rocky@7864 29 }
rocky@7864 30
rocky@7864 31 # Rules to gen a SliTaz package suitable for Tazpkg.
rocky@7864 32 genpkg_rules()
rocky@7864 33 {
rocky@7864 34 mkdir -p $fs/usr
pascal@14702 35 cp -a $install/usr/lib $fs/usr
rocky@7864 36 }