wok annotate perl-json-pp/receipt @ rev 25583

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 31 16:56:53 2023 +0000 (17 months ago)
parents 15650f5d595b
children b27d8c263cba
rev   line source
pascal@20469 1 # SliTaz package receipt.
pascal@20469 2
pascal@20469 3 PACKAGE="perl-json-pp"
Hans-G?nter@24231 4 VERSION="4.07"
pascal@20469 5 CATEGORY="development"
Hans-G?nter@23358 6 SHORT_DESC="Perl extension JSON::PP."
pascal@20469 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20469 8 LICENSE="GPL"
Hans-G?nter@24231 9 WEB_SITE="https://metacpan.org/pod/JSON::PP"
Hans-G?nter@24231 10 REPOLOGY="perl:json-pp"
Hans-G?nter@23358 11
Hans-G?nter@23358 12 SOURCE="JSON-PP"
Hans-G?nter@23358 13 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23358 14 WGET_URL="https://www.cpan.org/modules/by-module/JSON/$TARBALL"
Hans-G?nter@23358 15
pascal@20469 16 DEPENDS="perl"
pascal@20469 17 BUILD_DEPENDS="perl"
pascal@20469 18
pascal@24102 19 current_version()
pascal@24102 20 {
pascal@24102 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 22 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24102 23 }
pascal@24102 24
pascal@20469 25 # Rules to configure and make the package.
pascal@20469 26 compile_rules()
pascal@20469 27 {
pascal@20469 28 perl Makefile.PL &&
pascal@20469 29 make &&
Hans-G?nter@24231 30 make install DESTDIR=$DESTDIR
pascal@20469 31 }
pascal@20469 32
pascal@20469 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20469 34 genpkg_rules()
pascal@20469 35 {
Hans-G?nter@24231 36 cook_copy_folders lib
pascal@20469 37 }