summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-30 20:03:30 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-30 20:03:30 (GMT)
commit06a7fe412567659f07d42c22b73b81eaf257491a (patch)
tree46dbbea006f9baaaa45e1644b23e7a153c72b02a /abs/core
parent7b9806595225b8afd007f42b19bf0444e1a498aa (diff)
downloadlinhes_pkgbuild-06a7fe412567659f07d42c22b73b81eaf257491a.zip
linhes_pkgbuild-06a7fe412567659f07d42c22b73b81eaf257491a.tar.gz
linhes_pkgbuild-06a7fe412567659f07d42c22b73b81eaf257491a.tar.bz2
perl-eval-closure: initial
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/perl_modules/perl-eval-closure/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-eval-closure/PKGBUILD b/abs/core/perl_modules/perl-eval-closure/PKGBUILD
new file mode 100644
index 0000000..8db8ddb
--- /dev/null
+++ b/abs/core/perl_modules/perl-eval-closure/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
+# Montainer: 3ED <krzysztof1987 at gmail dot com>
+#
+
+pkgname=perl-eval-closure
+_lastauthor=D/DO/DOY
+_pkgname=Eval-Closure
+pkgver=0.14
+pkgrel=3
+pkgdesc="safely and cleanly create closures via string eval"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl-try-tiny' 'perl-sub-exporter')
+checkdepends=('perl-test-requires' 'perl-test-fatal' 'perl-test-output')
+url="https://metacpan.org/release/${_pkgname}"
+source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
+md5sums=('ceeb1fc579ac9af981fa6b600538c285')
+
+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
+}
+check() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make test
+}
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make install
+}