summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-18 09:01:32 +0200
committerErich Eckner <git@eckner.net>2016-04-18 09:01:32 +0200
commit77432103ff860f0fa31bdb3ab07070cfe1e2abb0 (patch)
treebe4c79c38d855a7a9068cbaee9c51cf52a8b27a9
parent6cf0386ee65d55ee584b00d4987ca8d8d9664f5e (diff)
downloadarchlinuxewe-77432103ff860f0fa31bdb3ab07070cfe1e2abb0.tar.xz
perl-devel-cover neu
-rw-r--r--perl-devel-cover/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/perl-devel-cover/PKGBUILD b/perl-devel-cover/PKGBUILD
new file mode 100644
index 000000000..2da30168a
--- /dev/null
+++ b/perl-devel-cover/PKGBUILD
@@ -0,0 +1,50 @@
+# Contributor: John D Jones III <jnbek1972 -_AT_- g m a i l -_Dot_- com>
+# Generator : CPANPLUS::Dist::Arch 1.27
+
+pkgname='perl-devel-cover'
+pkgver='1.22'
+pkgrel='1'
+pkgdesc='Code coverage metrics for Perl'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+makedepends=()
+url='https://metacpan.org/pod/Devel::Cover'
+_perlName='Devel-Cover'
+source=("https://cpan.metacpan.org/authors/id/P/PJ/PJCJ/${_perlName}-${pkgver}.tar.gz")
+sha512sums=('08be2b90a6f4e4b9295bbed16b1c33c30d2925a495a29d4a96d24ad9e4175808099ac4677c5eb59a68bbc3a7d98c5964698a2638bbdcfcf1ae867b41f9e2b2bd')
+_distdir="${_perlName}-${pkgver}"
+
+build() {
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+
+ cd "$srcdir/$_distdir"
+ /usr/bin/perl Makefile.PL
+ make
+ )
+}
+
+check() {
+ cd "$srcdir/$_distdir"
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ make test
+ )
+}
+
+package() {
+ cd "$srcdir/$_distdir"
+ make install
+
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et: