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