summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-29 16:30:42 +0200
committerErich Eckner <git@eckner.net>2016-04-29 16:30:42 +0200
commitd7e6f5edd93662f31cfd2fb5e6ce01cceb667970 (patch)
treebf67c07c73d1c611858d55dadf81ac1eabaecc01
parentad701428fefe68a6f23cf7473feaff8abcbcb9f9 (diff)
downloadarchlinuxewe-d7e6f5edd93662f31cfd2fb5e6ce01cceb667970.tar.xz
perl-test-cpan-meta neu
-rw-r--r--perl-test-cpan-meta/PKGBUILD63
1 files changed, 63 insertions, 0 deletions
diff --git a/perl-test-cpan-meta/PKGBUILD b/perl-test-cpan-meta/PKGBUILD
new file mode 100644
index 000000000..bd3e6e5a6
--- /dev/null
+++ b/perl-test-cpan-meta/PKGBUILD
@@ -0,0 +1,63 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (a1a5dc345ce385b4ecec6b807bdae9e3db0bf8d9d15d59331768c694d024731261eabbee3bb7e909052aabe8ad80ca6e8b34044981b6a349248d41ca327ecfcb)
+
+pkgname='perl-test-cpan-meta'
+pkgver='0.25'
+pkgrel='1'
+pkgdesc='Validate your CPAN META.json files'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl-parse-cpan-meta>=0.02' 'perl-test-simple' 'perl-test-pod>=1.00' 'perl-test-pod-coverage>=0.08')
+makedepends=('perl-io' 'perl-test-simple>=0.70' 'perl-test-simple')
+url='https://metacpan.org/release/Test-CPAN-Meta'
+_distdir="Test-CPAN-Meta-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/B/BA/BARBIE/${_distdir}.tar.gz")
+sha512sums=('60a3414e1e0f9aaa1a9459aedd76a6d937742a4197d0d5ce9330348138997d372ca3f454c262fb6dd757699168aa7d1c2653c4066060c9c5685a6fe407260580')
+
+build(){
+ cd "${srcdir}/${_distdir}"
+
+ # Setting these env variables overwrites any command-line-options we don't want...
+ 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
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ perl Makefile.PL
+ make
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build.PL
+ perl Build
+ fi
+}
+
+check(){
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make test
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build test
+ fi
+}
+
+package(){
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make install
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build install
+ fi
+
+ # remove perllocal.pod and .packlist
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
+}