wok-6.x annotate perl-libjson/receipt @ rev 24323
updated aria2 (1.35.0 -> 1.36.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 09:00:40 2022 +0100 (2022-01-27) |
parents | 20661c276bcf |
children | e717a4953b0e |
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@20682 | 12 WGET_URL="https://metacpan.org/CPAN/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 } |