archrelease: copy trunk to community-any
[ArchLinux/community.git] / perl-eval-closure / repos / community-any / PKGBUILD
blob7798894becda4f1d883e99c9e928074ec9250a54
1 # Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
2 # Montainer: 3ED <krzysztof1987 at gmail dot com>
5 pkgname=perl-eval-closure
6 _lastauthor=D/DO/DOY
7 _pkgname=Eval-Closure
8 pkgver=0.14
9 pkgrel=8
10 pkgdesc="safely and cleanly create closures via string eval"
11 arch=('any')
12 license=('PerlArtistic' 'GPL')
13 options=('!emptydirs')
14 depends=('perl-try-tiny' 'perl-sub-exporter')
15 checkdepends=('perl-test-requires' 'perl-test-fatal' 'perl-test-output')
16 url="https://metacpan.org/release/${_pkgname}"
17 source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
18 md5sums=('ceeb1fc579ac9af981fa6b600538c285')
20 build() {
21   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
22     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
23     PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
24     MODULEBUILDRC=/dev/null
26   cd "${srcdir}/${_pkgname}-${pkgver}"
27   perl Makefile.PL
28   make
30 check() {
31   cd "${srcdir}/${_pkgname}-${pkgver}"
32   make test
34 package() {
35   cd "${srcdir}/${_pkgname}-${pkgver}"
36   make install