wok-6.x annotate perl-json/receipt @ rev 24929
updated mtools (4.0.23 -> 4.0.39)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 13 15:59:41 2022 +0100 (2022-04-13) |
parents | 15650f5d595b |
children |
rev | line source |
---|---|
nneul@17850 | 1 # SliTaz package receipt. |
nneul@17850 | 2 |
nneul@17850 | 3 PACKAGE="perl-json" |
Hans-G?nter@24230 | 4 VERSION="4.04" |
nneul@17850 | 5 CATEGORY="development" |
Hans-G?nter@23357 | 6 SHORT_DESC="Perl Module JSON." |
nneul@17850 | 7 MAINTAINER="nneul@neulinger.org" |
Hans-G?nter@24230 | 8 LICENSE="GPL" |
Hans-G?nter@24230 | 9 WEB_SITE="https://metacpan.org/pod/JSON" |
Hans-G?nter@24230 | 10 REPOLOGY="perl:json" |
Hans-G?nter@23357 | 11 |
Hans-G?nter@23357 | 12 SOURCE="JSON" |
Hans-G?nter@23357 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23357 | 14 WGET_URL="https://www.cpan.org/modules/by-module/JSON/$TARBALL" |
Hans-G?nter@23357 | 15 |
nneul@17850 | 16 DEPENDS="perl" |
nneul@17850 | 17 BUILD_DEPENDS="perl" |
nneul@17850 | 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 |
nneul@17850 | 25 # Rules to configure and make the package. |
nneul@17850 | 26 compile_rules() |
nneul@17850 | 27 { |
nneul@17850 | 28 perl Makefile.PL && |
nneul@17850 | 29 make && |
Hans-G?nter@24230 | 30 make install DESTDIR=$DESTDIR |
nneul@17850 | 31 } |
nneul@17850 | 32 |
nneul@17850 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@17850 | 34 genpkg_rules() |
nneul@17850 | 35 { |
Hans-G?nter@24230 | 36 cook_copy_folders lib |
nneul@17850 | 37 # remove perllocal.pod and .packlist |
Hans-G?nter@23357 | 38 find $fs -name perllocal.pod -delete |
Hans-G?nter@23357 | 39 find $fs -name .packlist -delete |
nneul@17850 | 40 } |