summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorint2017-10-17 14:50:09 +0200
committerint2017-10-17 14:52:08 +0200
commit8e17ad140dd0fb114c3cbe545e47071a2f9d7e48 (patch)
tree736993c76db4b04dac72483d5287e77de53b26b4
downloadaur-perl-test-mockrandom.tar.gz
Perl/CPAN Test::MockRandom
This is with the cpan2aur-bugfix, see https://rt.cpan.org/Public/Bug/Display.html?id=123153 for details.
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD50
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e0eea927369
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = perl-test-mockrandom
+ pkgdesc = Perl/CPAN Module Test::MockRandom: Replaces random number generation with non-random number generation
+ pkgver = 1.01
+ pkgrel = 1
+ url = https://metacpan.org/release/Test-MockRandom
+ arch = any
+ license = PerlArtistic
+ license = GPL
+ depends = perl
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Test-MockRandom-1.01.tar.gz
+ md5sums = 5ea7e2ec70776129993721f7632d04da
+ sha512sums = e222bd0d3d7673b403e80d1633ddaca0ee35f96f2245e8df859d661edc7efc09b9a96d3718f25b6614395d1f24d66c9498e842cec476cf8c5b12464d585f85e7
+
+pkgname = perl-test-mockrandom
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d4259f3c4a3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer : int <int [ate] arcor [dot] de>
+# Generator : CPANPLUS::Dist::Arch 1.32
+
+pkgname='perl-test-mockrandom'
+pkgver='1.01'
+pkgrel='1'
+pkgdesc="Perl/CPAN Module Test::MockRandom: Replaces random number generation with non-random number generation"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+makedepends=()
+url='https://metacpan.org/release/Test-MockRandom'
+source=("http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Test-MockRandom-$pkgver.tar.gz")
+md5sums=('5ea7e2ec70776129993721f7632d04da')
+sha512sums=('e222bd0d3d7673b403e80d1633ddaca0ee35f96f2245e8df859d661edc7efc09b9a96d3718f25b6614395d1f24d66c9498e842cec476cf8c5b12464d585f85e7')
+_distdir="Test-MockRandom-$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: