wok-next diff perl-datetime/receipt @ rev 21206

try to build assaultcube again
author Hans-G?nter Theisgen
date Mon Dec 02 09:25:03 2019 +0100 (2019-12-02)
parents 701a4b1784b6
children
line diff
     1.1 --- a/perl-datetime/receipt	Mon Sep 03 10:09:42 2018 +0300
     1.2 +++ b/perl-datetime/receipt	Mon Dec 02 09:25:03 2019 +0100
     1.3 @@ -1,33 +1,24 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6 +ORIGIN="DateTime"
     1.7  PACKAGE="perl-datetime"
     1.8  VERSION="1.50"
     1.9 +AUTHOR="DROLSKY"
    1.10  CATEGORY="perl"
    1.11  SHORT_DESC="DateTime - A date and time object for Perl"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL"
    1.14 -WEB_SITE="https://metacpan.org/release/DateTime"
    1.15 -REPOLOGY="perl:datetime"
    1.16 +WEB_SITE="https://metacpan.org/release/$ORIGIN"
    1.17 +REPOLOGY="${PACKAGE/-/:}"
    1.18  
    1.19 -TARBALL="DateTime-$VERSION.tar.gz"
    1.20 -WGET_URL="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/$TARBALL"
    1.21 +TARBALL="$ORIGIN-$VERSION.tar.gz"
    1.22 +WGET_URL="https://cpan.metacpan.org/authors/id/${AUTHOR:0:1}/${AUTHOR:0:2}/$AUTHOR/$TARBALL"
    1.23  
    1.24 -BUILD_DEPENDS="perl-datetime-locale perl-datetime-timezone \
    1.25 +DEPENDS_std="perl-datetime-locale perl-datetime-timezone \
    1.26  perl-dist-checkconflicts perl-namespace-autoclean \
    1.27 -perl-params-validationcompiler perl-specio perl-try-tiny \
    1.28 -perl-dev perl-cpan-meta-check perl-test-warnings"
    1.29 +perl-params-validationcompiler perl-specio perl-try-tiny"
    1.30 +BUILD_DEPENDS="$DEPENDS_std perl-dev perl-cpan-meta-check perl-test-warnings"
    1.31  
    1.32  compile_rules() {
    1.33 -	perl Makefile.PL &&
    1.34 -	make &&
    1.35 -	make DESTDIR=$install install &&
    1.36 -
    1.37 -	chmod -R u+w $install
    1.38 +	cook_perl
    1.39  }
    1.40 -
    1.41 -genpkg_rules() {
    1.42 -	copy @std
    1.43 -	DEPENDS="perl-datetime-locale perl-datetime-timezone \
    1.44 -	perl-dist-checkconflicts perl-namespace-autoclean \
    1.45 -	perl-params-validationcompiler perl-specio perl-try-tiny"
    1.46 -}