aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-16 16:36:10 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-11-16 18:07:31 +0000
commita7d1d84599308cb284ee361b63890d3fce66af12 (patch)
tree83e434f830ad479e87109eaabff92a2da4499adf /main
parent0d8010c63fc8ae1459d0c2524186485683b368e8 (diff)
downloadaports-a7d1d84599308cb284ee361b63890d3fce66af12.tar.bz2
aports-a7d1d84599308cb284ee361b63890d3fce66af12.tar.xz
community/perl-test-mockrandom: move to main
It is required by perl-path-tiny package
Diffstat (limited to 'main')
-rw-r--r--main/perl-test-mockrandom/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/perl-test-mockrandom/APKBUILD b/main/perl-test-mockrandom/APKBUILD
new file mode 100644
index 0000000000..e65f5aaeed
--- /dev/null
+++ b/main/perl-test-mockrandom/APKBUILD
@@ -0,0 +1,45 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-test-mockrandom
+_pkgreal=Test-MockRandom
+pkgver=1.01
+pkgrel=1
+pkgdesc="Replaces random number generation with non-random number generation"
+url="http://search.cpan.org/dist/Test-MockRandom/"
+arch="noarch"
+license="apache_2_0"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ 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"