summaryrefslogtreecommitdiff
path: root/perl-test-checkdeps/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-29 23:35:28 +0200
committerErich Eckner <git@eckner.net>2017-08-29 23:35:28 +0200
commit9c5bcc5f2740793c4d31ba03e460ec2dcb2322d3 (patch)
tree42765bb976e336858ad8fe5bb0deda04210fff3d /perl-test-checkdeps/PKGBUILD
parentcebeb907a87c5d56f6b4f8f23fed8dd05fb5fc09 (diff)
downloadarchlinuxewe.git.save-9c5bcc5f2740793c4d31ba03e460ec2dcb2322d3.tar.xz
perl-test-checkdeps neu
Diffstat (limited to 'perl-test-checkdeps/PKGBUILD')
-rw-r--r--perl-test-checkdeps/PKGBUILD76
1 files changed, 76 insertions, 0 deletions
diff --git a/perl-test-checkdeps/PKGBUILD b/perl-test-checkdeps/PKGBUILD
new file mode 100644
index 00000000..21155003
--- /dev/null
+++ b/perl-test-checkdeps/PKGBUILD
@@ -0,0 +1,76 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (ef0b8d9e9ed5e7aec93f3e72d031ac7ee7fb4246e042c09b06bbdcecfbc0e3c879d26484951ecde4eb4b299510817c6aead5d93f6a73544b768ed6467f4108fc)
+
+pkgname='perl-test-checkdeps'
+pkgver='0.010'
+pkgrel='1'
+pkgdesc='Check for presence of dependencies'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.6.0'
+ 'perl-cpan-meta>=2.120920'
+ 'perl-cpan-meta-check>=0.007'
+ 'perl-exporter>=5.57'
+ 'perl-scalar-list-utils'
+ 'perl-test-simple'
+)
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker>=6.30'
+ 'perl-io'
+ 'perl-pathtools'
+ 'perl-test-simple>=0.88'
+)
+url='https://metacpan.org/release/Test-CheckDeps'
+_distdir="Test-CheckDeps-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/L/LE/LEONT/${_distdir}.tar.gz")
+sha512sums=('9683b81aa6bce358fa1abc9b2337b9b15b274742f08a3fd71e80df0bfd20619406cdded191aafdd103db8d514bdc20d36a0b60aefbd72d3de6cb117c17461697')
+
+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
+}