blob: 2ace9e8a04d0bfc85060d855cfca281d5be48861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $Id$
# Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
pkgname=perl-params-validationcompiler
_pkgname=Params-ValidationCompiler
pkgver=0.27
pkgrel=1
pkgdesc="Build an optimized subroutine parameter validator once, use it forever"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-role-tiny' 'perl-eval-closure' 'perl-exception-class')
checkdepends=('perl-test-fatal')
url="http://search.cpan.org/dist/Params-ValidationCompiler/"
source=(http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-$pkgver.tar.gz)
sha256sums=('50a99968359d430e34ea8a12e7f08a669ffd34a3dae4d8ea9ca076c1100af9b2')
build() {
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
MODULEBUILDRC=/dev/null
cd "${srcdir}/${_pkgname}-${pkgver}"
perl Makefile.PL
make
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make install
}
|