summaryrefslogtreecommitdiff
path: root/perl-eval-closure/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-05 15:20:43 +0200
committerErich Eckner <git@eckner.net>2016-04-05 15:31:08 +0200
commitac4018e7b58cabbe3e504dcae46d617d5607c74a (patch)
tree877d72f6027681005a8f29d21a6bc2a635c0c65d /perl-eval-closure/PKGBUILD
parent6403f2898d34c6df894af2b920c2eebfba072557 (diff)
downloadarchlinuxewe.git.save-ac4018e7b58cabbe3e504dcae46d617d5607c74a.tar.xz
perl-eval-closure
Diffstat (limited to 'perl-eval-closure/PKGBUILD')
-rw-r--r--perl-eval-closure/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/perl-eval-closure/PKGBUILD b/perl-eval-closure/PKGBUILD
new file mode 100644
index 00000000..f2741c9b
--- /dev/null
+++ b/perl-eval-closure/PKGBUILD
@@ -0,0 +1,35 @@
+# Montainer: 3ED <krzysztof1987 at gmail dot com>
+#
+pkgname=perl-eval-closure
+_lastauthor=D/DO/DOY
+_pkgname=Eval-Closure
+pkgver=0.13
+pkgrel=1
+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)
+sha512sums=('f87d8aa8af5f87611f95a8f1f44f9c403ab669f944b3a63a9f8ca6a80075ed957f0050bd57b2076581bc47fa57b710712ed9e3abe5670a1881b12dd674414f89')
+
+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
+}