wok-next diff perl-net-snmp/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line diff
     1.1 --- a/perl-net-snmp/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.2 +++ b/perl-net-snmp/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -1,28 +1,23 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="Net-SNMP"
     1.8  PACKAGE="perl-net-snmp"
     1.9  VERSION="6.0.1"
    1.10 +AUTHOR="DTOWN"
    1.11  CATEGORY="perl"
    1.12  SHORT_DESC="Net::SNMP - Object oriented interface to SNMP"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="GPL"
    1.15 -WEB_SITE="https://metacpan.org/release/Net-SNMP"
    1.16 -REPOLOGY="perl:net-snmp"
    1.17 +WEB_SITE="https://metacpan.org/release/$ORIGIN"
    1.18 +HOST_ARCH="any"
    1.19 +REPOLOGY="${PACKAGE/-/:}"
    1.20  
    1.21 -TARBALL="Net-SNMP-v$VERSION.tar.gz"
    1.22 -WGET_URL="https://cpan.metacpan.org/authors/id/D/DT/DTOWN/$TARBALL"
    1.23 +TARBALL="$ORIGIN-v$VERSION.tar.gz" # !!!
    1.24 +WGET_URL="https://cpan.metacpan.org/authors/id/${AUTHOR:0:1}/${AUTHOR:0:2}/$AUTHOR/$TARBALL"
    1.25  
    1.26 -BUILD_DEPENDS="perl-crypt-des perl-digest-hmac perl-digest-sha1"
    1.27 +DEPENDS_std="perl-crypt-des perl-digest-hmac perl-digest-sha1"
    1.28 +BUILD_DEPENDS="$DEPENDS_std"
    1.29  
    1.30  compile_rules() {
    1.31 -	perl Makefile.PL &&
    1.32 -	make &&
    1.33 -	make DESTDIR=$install install &&
    1.34 -
    1.35 -	chmod -R u+w $install
    1.36 +	cook_perl
    1.37  }
    1.38 -
    1.39 -genpkg_rules() {
    1.40 -	copy @std
    1.41 -	DEPENDS="perl-crypt-des perl-digest-hmac perl-digest-sha1"
    1.42 -}