summaryrefslogtreecommitdiff
path: root/perl-test-mockrandom/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-20 16:04:25 +0200
committerErich Eckner <git@eckner.net>2016-05-20 16:04:25 +0200
commit2398ac2e8417d8c62652e4baa85860227d203334 (patch)
treed16391a4c56a69bae0af1a1de37a958971827f96 /perl-test-mockrandom/PKGBUILD
parent0045b878e4831f66cf7035ca9c2283455e7bd212 (diff)
downloadarchlinuxewe-2398ac2e8417d8c62652e4baa85860227d203334.tar.xz
perl-test-mockrandom neu
Diffstat (limited to 'perl-test-mockrandom/PKGBUILD')
-rw-r--r--perl-test-mockrandom/PKGBUILD74
1 files changed, 74 insertions, 0 deletions
diff --git a/perl-test-mockrandom/PKGBUILD b/perl-test-mockrandom/PKGBUILD
new file mode 100644
index 000000000..fb58c48b2
--- /dev/null
+++ b/perl-test-mockrandom/PKGBUILD
@@ -0,0 +1,74 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (5872fdbe767f20dd006eece094815303adfcd3b336cb5ad02d10742b82e6f11e31530fef3b41a2af59678d729daebff83cde847dab68d62647f62cf8dc586685)
+
+pkgname='perl-test-mockrandom'
+pkgver='1.01'
+pkgrel='1'
+pkgdesc='Replaces random number generation with non-random number generation'
+arch=('x86_64' 'i686')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+provides=(
+ 'perl-test-mockrandom')
+depends=(
+ 'perl-carp'
+ 'perl>=5.006')
+makedepends=(
+ 'perl-extutils-makemaker'
+ 'perl-pathtools'
+ 'perl-scalar-list-utils'
+ 'perl-test-simple'
+ 'perl-lib'
+ 'perl-version'
+ 'perl-extutils-makemaker>=6.17')
+url='https://metacpan.org/release/Test-MockRandom'
+_distdir="Test-MockRandom-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/${_distdir}.tar.gz")
+sha512sums=('e222bd0d3d7673b403e80d1633ddaca0ee35f96f2245e8df859d661edc7efc09b9a96d3718f25b6614395d1f24d66c9498e842cec476cf8c5b12464d585f85e7')
+
+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
+}