summaryrefslogtreecommitdiff
path: root/perl-mock-config
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-04-07 19:12:09 +0200
committerErich Eckner <git@eckner.net>2017-04-07 19:12:09 +0200
commitcedd7cd217eaf789e13779576f4142918a00c32b (patch)
tree181f97032c21bc815ab0b339667cdb1255836864 /perl-mock-config
parent486c15b88d5f607de90ce0701b110e66a0fc3420 (diff)
downloadarchlinuxewe.git.save-cedd7cd217eaf789e13779576f4142918a00c32b.tar.xz
perl-mock-config neu
Diffstat (limited to 'perl-mock-config')
-rw-r--r--perl-mock-config/PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/perl-mock-config/PKGBUILD b/perl-mock-config/PKGBUILD
new file mode 100644
index 00000000..2645cd12
--- /dev/null
+++ b/perl-mock-config/PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (54bfd7cca693b229aa53ffc98d551b62ea234aaa5be7e6717857610a2da6803b0be2dfe7ddfe9810cf320c477023b3b4356d47df7f8c202ed8c14d71b472c0bc)
+
+pkgname='perl-mock-config'
+pkgver='0.03'
+pkgrel='1'
+pkgdesc='temporarily set Config or XSConfig values'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.6.0')
+makedepends=(
+ 'perl-extutils-makemaker'
+ 'perl-test-simple')
+url='https://metacpan.org/release/Mock-Config'
+_distdir="Mock-Config-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/R/RU/RURBAN/${_distdir}.tar.gz")
+sha512sums=('6e61e8edc3226b133eb4b49358cccb45a8eb7da5b56eed0d75ce1503b5ef91c7ea84606ef3bd482e3ac8dc3d66226aa3065d835547b4e807729d909eae88c8c0')
+
+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
+}