blob: 1acf9d21f9485bf6ae150ba7fe128460f04b1063 (
plain)
1 # Description: Build an optimized subroutine parameter validator once, use it forever
2 # URL: https://metacpan.org/pod/Params::ValidationCompiler
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: p5-eval-closure p5-exception-class p5-role-tiny
5
6 name=p5-params-validationcompiler
7 version=0.31
8 release=1
9 source=(https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-$version.tar.gz)
10
11 build() {
12 cd Params-ValidationCompiler-$version
13 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
14 PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$PKG"'" \
15 PERL_MB_OPT="--installdirs vendor --destdir '"$PKG"'" \
16 MODULEBUILDRC=/dev/null
17 perl Makefile.PL
18 make
19 make install
20 find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
21 }
|