summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-05 15:18:18 +0200
committerErich Eckner <git@eckner.net>2016-04-05 15:31:08 +0200
commitfe0401cf3143395bde2c9141303e31082863866b (patch)
tree7b33f5f031dfb45620425a18dbfe6ed05b89137c
parent147111e1bcc42f8dd311266f0f02a5de7cf947cf (diff)
downloadarchlinuxewe.git.save-fe0401cf3143395bde2c9141303e31082863866b.tar.xz
perl-class-load-xs
-rw-r--r--perl-class-load-xs/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/perl-class-load-xs/PKGBUILD b/perl-class-load-xs/PKGBUILD
new file mode 100644
index 00000000..e1f88330
--- /dev/null
+++ b/perl-class-load-xs/PKGBUILD
@@ -0,0 +1,37 @@
+# Mantainer: 3ED <krzysztof1987 at gmail dot com>
+
+pkgname=perl-class-load-xs
+_lastauthor=E/ET/ETHER
+_pkgname=Class-Load-XS
+pkgver=0.09
+pkgrel=3
+pkgdesc="XS implementation of parts of Class::Load"
+arch=('any')
+license=('PerlArtistic2')
+options=('!emptydirs')
+# https://bugs.archlinux.org/task/43204
+# perl-class-load should depend on perl-namespace-clean
+depends=('perl-class-load' 'perl-namespace-clean')
+checkdepends=('perl-module-implementation' 'perl-test-fatal' 'perl-test-requires')
+url="https://metacpan.org/release/${_pkgname}"
+source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
+sha512sums=('9b24637cf7b035ba369f05e42c0bd5a8590e001f2395b46df078635a50bb3df58ad57850be0010d092ae2530d9a545bbcc5f0055f6ae7f166c93905c022d469d')
+
+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
+}