wok-current annotate perl-text-iconv/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 e717a4953b0e
rev   line source
pascal@5972 1 # SliTaz package receipt.
pascal@5972 2
pascal@5972 3 PACKAGE="perl-text-iconv"
pascal@5972 4 VERSION="1.7"
pascal@5972 5 CATEGORY="development"
pascal@5972 6 SHORT_DESC="Text::Iconv module is a Perl extension."
pascal@5972 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14702 8 LICENSE="GPL"
pascal@5972 9 DEPENDS="perl"
pascal@5972 10 BUILD_DEPENDS="perl"
pascal@5972 11 SOURCE="Text-Iconv"
pascal@5972 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24103 13 WEB_SITE="https://metacpan.org/dist/Text-Iconv"
pascal@20682 14 WGET_URL="https://metacpan.org/CPAN/authors/id/M/MP/MPIOTR/$TARBALL"
pascal@5972 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
pascal@5972 22 # Rules to configure and make the package.
pascal@5972 23 compile_rules()
pascal@5972 24 {
pascal@5972 25 cd $src
pascal@5972 26 perl Makefile.PL &&
pascal@5972 27 make &&
pascal@14702 28 make DESTDIR=$DESTDIR install
pascal@5972 29 }
pascal@5972 30
pascal@5972 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5972 32 genpkg_rules()
pascal@5972 33 {
pascal@5972 34 mkdir -p $fs/usr
pascal@14702 35 cp -a $install/usr/lib $fs/usr
pascal@5972 36 }
pascal@5972 37