updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / perl-eval-closure / PKGBUILD
blob9eb6e2b6bf5a1eb4ff5abe51363654344aa3b457
1 # Contributor: 3ED <krzysztof1987 at gmail dot com>
3 pkgname=perl-eval-closure
4 _lastauthor=D/DO/DOY
5 _pkgname=Eval-Closure
6 pkgver=0.06
7 pkgrel=1
8 pkgdesc="safely and cleanly create closures via string eval"
9 arch=('any')
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl' 'perl-test-simple' 'perl-test-requires' 'perl-test-fatal' 'perl-scalar-list-utils' 'perl-try-tiny' 'perl-sub-exporter')
13 url='http://search.cpan.org/dist/Eval-Closure/'
14 source=(http://search.cpan.org/CPAN/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
15 sha256sums=('2c425b6189c30dd0782c22f86e16c578b508ab78c3398edc8fbc8f7cda8b4e62')
17 build() {
18   cd "${srcdir}/${_pkgname}-${pkgver}"
19   export PERL_MM_USE_DEFAULT=1
20   export PERL_AUTOINSTALL='--skipdeps'
21   perl Makefile.PL INSTALLDIRS=vendor
22   make
24 check() {
25   cd "${srcdir}/${_pkgname}-${pkgver}"
26   make test
28 package() {
29   cd "${srcdir}/${_pkgname}-${pkgver}"
30   make DESTDIR="${pkgdir}" install
31   find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete