wok-6.x annotate perl-log-agent/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 41a1792504e6
children 5c3f57bc9b11
rev   line source
sygne@1683 1 # SliTaz package receipt.
sygne@1683 2
sygne@1683 3 PACKAGE="perl-log-agent"
Hans-G?nter@23363 4 VERSION="1.003"
sygne@1683 5 CATEGORY="development"
Hans-G?nter@23363 6 SHORT_DESC="Perl extension Log::Agent."
sygne@1683 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14702 8 LICENSE="GPL"
Hans-G?nter@23363 9 WEB_SITE="https://metacpan.org/release/Log-Agent"
Hans-G?nter@23363 10
Hans-G?nter@23363 11 SOURCE="Log-Agent"
Hans-G?nter@23363 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23363 13 WGET_URL="https://www.cpan.org/modules/by-module/Log/$TARBALL"
Hans-G?nter@23363 14
sygne@1683 15 DEPENDS="perl"
sygne@1683 16 BUILD_DEPENDS="perl"
sygne@1683 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
sygne@1683 24 # Rules to configure and make the package.
sygne@1683 25 compile_rules()
sygne@1683 26 {
sygne@1683 27 perl Makefile.PL &&
sygne@1683 28 make &&
pascal@14702 29 make DESTDIR=$DESTDIR install
sygne@1683 30 }
sygne@1683 31
sygne@1683 32 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@1683 33 genpkg_rules()
sygne@1683 34 {
sygne@1683 35 mkdir -p $fs/usr
Hans-G?nter@23363 36 cp -a $install/usr/lib $fs/usr
sygne@1683 37 }