diff options
author | Erich Eckner <git@eckner.net> | 2016-04-18 09:04:33 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-18 09:04:33 +0200 |
commit | 06651f0323658a505e0f12fc487575c295a32583 (patch) | |
tree | 6e92c9102fc527d2d02ae4184bf0ef08098773bc | |
parent | 77432103ff860f0fa31bdb3ab07070cfe1e2abb0 (diff) | |
download | archlinuxewe-06651f0323658a505e0f12fc487575c295a32583.tar.xz |
perl-extutils-makemaker-coverage neu
-rw-r--r-- | perl-extutils-makemaker-coverage/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/perl-extutils-makemaker-coverage/PKGBUILD b/perl-extutils-makemaker-coverage/PKGBUILD new file mode 100644 index 000000000..91f25a8b2 --- /dev/null +++ b/perl-extutils-makemaker-coverage/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-extutils-makemaker-coverage' +pkgver='0.04' +pkgrel='1' +pkgdesc='add a Makefile target to determine test coverage using Devel::Cover' +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=('perl-devel-cover') +url='https://metacpan.org/release/SMPETERS/ExtUtils-MakeMaker-Coverage-0.04' +_perlName="ExtUtils-MakeMaker-Coverage" +source=("https://cpan.metacpan.org/authors/id/S/SM/SMPETERS/${_perlName}-${pkgver}.tar.gz") +sha512sums=('52392c24f649ae4d15e6d53b65f757c9c789ad6c588df77abf08fa650907040954227d854441946bc7b4c2219ce158a6bd05976beeecc6c388c43d3457138c26') +_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: |