wok-6.x annotate perl-text-glob/receipt @ rev 24699

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 13 19:47:29 2022 +0000 (2022-03-13)
parents 18c66805dd1a
children
rev   line source
slaxemulator@10175 1 # SliTaz package receipt.
slaxemulator@10175 2
slaxemulator@10175 3 PACKAGE="perl-text-glob"
pascal@20905 4 VERSION="0.11"
slaxemulator@10175 5 CATEGORY="development"
slaxemulator@10175 6 SHORT_DESC="Match globbing patterns against text."
slaxemulator@10175 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14702 8 LICENSE="GPL"
slaxemulator@10175 9 DEPENDS="perl"
slaxemulator@10175 10 BUILD_DEPENDS="perl"
slaxemulator@10175 11 SOURCE="Text-Glob"
slaxemulator@10175 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@20905 13 WEB_SITE="https://metacpan.org/release/Text-Glob"
pascal@20905 14 WGET_URL="https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/$TARBALL"
slaxemulator@10175 15
pascal@24102 16 current_version()
pascal@24102 17 {
pascal@24102 18 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 19 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24102 20 }
pascal@24102 21
slaxemulator@10175 22 # Rules to configure and make the package.
slaxemulator@10175 23 compile_rules()
slaxemulator@10175 24 {
slaxemulator@10175 25 perl Makefile.PL &&
slaxemulator@10175 26 make &&
slaxemulator@10175 27 make install DESTDIR="$DESTDIR"
slaxemulator@10175 28 }
slaxemulator@10175 29
slaxemulator@10175 30 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@10175 31 genpkg_rules()
slaxemulator@10175 32 {
slaxemulator@10175 33 mkdir -p $fs/usr
pascal@14702 34 cp -a $install/usr/lib $fs/usr
slaxemulator@10175 35 }