From 77432103ff860f0fa31bdb3ab07070cfe1e2abb0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 18 Apr 2016 09:01:32 +0200 Subject: perl-devel-cover neu --- perl-devel-cover/PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 perl-devel-cover/PKGBUILD 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 +# 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: -- cgit v1.2.3-70-g09d2