summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-25 19:09:49 -0700
committerDan Theisen <djt@hxx.in>2018-09-25 19:09:49 -0700
commit040798953792a07d588dde6e84d5420c12df4746 (patch)
treea6d1feabc39d1a81a32f27375a640310a82005d9
parentbc4b5c7638f1899d1e56a625ff3b2eac3b619d06 (diff)
downloadpackages-040798953792a07d588dde6e84d5420c12df4746.tar.gz
packages-040798953792a07d588dde6e84d5420c12df4746.tar.bz2
packages-040798953792a07d588dde6e84d5420c12df4746.tar.xz
packages-040798953792a07d588dde6e84d5420c12df4746.zip
user/perl-test-mockrandom: new package
-rw-r--r--user/perl-test-mockrandom/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-test-mockrandom/APKBUILD b/user/perl-test-mockrandom/APKBUILD
new file mode 100644
index 000000000..ddf840a56
--- /dev/null
+++ b/user/perl-test-mockrandom/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-test-mockrandom
+pkgver=1.01
+pkgrel=0
+pkgdesc="Replaces random number generation with non-random number generation"
+url="https://metacpan.org/pod/Test::MockRandom"
+arch="noarch"
+license="Apache-2.0"
+depends="perl"
+makedepends="perl-dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-MockRandom-$pkgver.tar.gz"
+builddir="$srcdir/Test-MockRandom-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="e222bd0d3d7673b403e80d1633ddaca0ee35f96f2245e8df859d661edc7efc09b9a96d3718f25b6614395d1f24d66c9498e842cec476cf8c5b12464d585f85e7 Test-MockRandom-1.01.tar.gz"