wok-current annotate perl-libjson/receipt @ rev 24975
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 02 16:22:04 2022 +0000 (2022-05-02) |
parents | 15650f5d595b |
children |
rev | line source |
---|---|
pascal@17358 | 1 # SliTaz package receipt. |
pascal@17358 | 2 |
pascal@17358 | 3 PACKAGE="perl-libjson" |
pascal@17358 | 4 SOURCE="JSON" |
pascal@17358 | 5 VERSION="2.90" |
pascal@17358 | 6 CATEGORY="development" |
pascal@17358 | 7 SHORT_DESC="JSON (JavaScript Object Notation) encoder/decoder" |
pascal@17358 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17358 | 9 LICENSE="GPL" |
pascal@17358 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@17358 | 11 WEB_SITE="https://metacpan.org/release/JSON" |
pascal@24975 | 12 WGET_URL="https://cpan.metacpan.org/authors/id/M/MA/MAKAMAKA/$TARBALL" |
pascal@17358 | 13 |
pascal@17741 | 14 DEPENDS="perl" |
pascal@17741 | 15 BUILD_DEPENDS="perl" |
pascal@17741 | 16 |
pascal@24102 | 17 current_version() |
pascal@24102 | 18 { |
pascal@24102 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 20 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 21 } |
pascal@24102 | 22 |
pascal@17358 | 23 # Rules to configure and make the package. |
pascal@17358 | 24 compile_rules() |
pascal@17358 | 25 { |
pascal@17358 | 26 perl Makefile.PL && |
pascal@17358 | 27 make && |
pascal@17358 | 28 make DESTDIR=$DESTDIR install |
pascal@17358 | 29 } |
pascal@17358 | 30 |
pascal@17358 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17358 | 32 genpkg_rules() |
pascal@17358 | 33 { |
pascal@17358 | 34 mkdir -p $fs/usr |
pascal@17358 | 35 cp -a $install/usr/lib $fs/usr |
pascal@17358 | 36 } |