wok-current annotate perl-locale-gettext/receipt @ rev 24102

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 17 10:35:57 2021 +0000 (2021-09-17)
parents aad106864a1c
children
rev   line source
slaxemulator@7403 1 # SliTaz package receipt.
slaxemulator@7403 2
slaxemulator@7403 3 PACKAGE="perl-locale-gettext"
Hans-G?nter@23361 4 VERSION="1.07"
slaxemulator@7403 5 CATEGORY="development"
slaxemulator@7403 6 SHORT_DESC="Permits access from Perl to the gettext() family of functions."
slaxemulator@7403 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14702 8 LICENSE="GPL"
Hans-G?nter@23361 9 WEB_SITE="https://metacpan.org/release/gettext/"
Hans-G?nter@23361 10
slaxemulator@7403 11 SOURCE="gettext"
slaxemulator@7403 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23361 13 WGET_URL="https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/$TARBALL"
Hans-G?nter@23361 14
Hans-G?nter@23361 15 DEPENDS="gettext-base perl"
Hans-G?nter@23361 16 BUILD_DEPENDS="$DEPENDS"
slaxemulator@7403 17
pascal@24102 18 current_version()
pascal@24102 19 {
pascal@24102 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 21 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24102 22 }
pascal@24102 23
slaxemulator@7403 24 # Rules to configure and make the package.
slaxemulator@7403 25 compile_rules()
slaxemulator@7403 26 {
Hans-G?nter@23361 27 # included in 1.07
Hans-G?nter@23361 28 # patch -Np1 -i $stuff/compatibility-with-POSIX-module.patch
Hans-G?nter@23361 29
Hans-G?nter@23361 30 perl Makefile.PL &&
Hans-G?nter@23361 31 make &&
pascal@14702 32 make DESTDIR="$DESTDIR" install
slaxemulator@7403 33 }
slaxemulator@7403 34
slaxemulator@7403 35 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7403 36 genpkg_rules()
slaxemulator@7403 37 {
slaxemulator@7403 38 mkdir -p $fs/usr
Hans-G?nter@23361 39 cp -a $install/usr/lib $fs/usr
Hans-G?nter@23361 40
slaxemulator@7403 41 find "$fs" -name perllocal.pod -delete
slaxemulator@7403 42 find "$fs" -name .packlist -delete
slaxemulator@7403 43 }