wok annotate perl-params-validate/receipt @ rev 24936

created recipe for mypaint-brushes
author Hans-G?nter Theisgen
date Thu Apr 14 09:08:33 2022 +0100 (2022-04-14)
parents b369f811852b
children 0af8df0b46fc
rev   line source
pascal@9281 1 # SliTaz package receipt.
pascal@9281 2
pascal@9281 3 PACKAGE="perl-params-validate"
Hans-G?nter@23385 4 VERSION="1.29"
pascal@9281 5 CATEGORY="development"
Hans-G?nter@23385 6 SHORT_DESC="Perl extension Params::Validate."
pascal@9281 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14702 8 LICENSE="GPL"
Hans-G?nter@23385 9 WEB_SITE="https://metacpan.org/release/Params-Validate"
Hans-G?nter@23385 10
pascal@9281 11 SOURCE="Params-Validate"
pascal@9281 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23385 13 WGET_URL="https://www.cpan.org/modules/by-module/Params/$TARBALL"
pascal@9281 14
Hans-G?nter@23385 15 DEPENDS="perl perl-module-implementation perl-test-fatal perl-test-requires perl-test-simple"
nneul@18450 16 BUILD_DEPENDS="$DEPENDS"
nneul@18450 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@9281 24 # Rules to configure and make the package.
pascal@9281 25 compile_rules()
pascal@9281 26 {
pascal@9281 27 perl Build.PL &&
pascal@14702 28 ./Build --destdir $DESTDIR install
pascal@9281 29 }
pascal@9281 30
pascal@9281 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@9281 32 genpkg_rules()
pascal@9281 33 {
pascal@9281 34 mkdir -p $fs/usr
Hans-G?nter@23385 35 cp -a $install/usr/lib $fs/usr
pascal@9281 36 }