diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-13 13:44:36 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-13 13:54:08 +0000 |
commit | 05e340f19912d0914166baa03e9f1a49a4d2f3c3 (patch) | |
tree | c1dd2e82ec053116df6510ef5a59b905db8d4631 /community/perl-test-mockrandom | |
parent | f51d7f0899853c7dcc9a62015df8a9e82f344ab0 (diff) | |
download | aports-05e340f19912d0914166baa03e9f1a49a4d2f3c3.tar.bz2 aports-05e340f19912d0914166baa03e9f1a49a4d2f3c3.tar.xz |
community/perl-test-mockrandom: moved from testing
Diffstat (limited to 'community/perl-test-mockrandom')
-rw-r--r-- | community/perl-test-mockrandom/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-test-mockrandom/APKBUILD b/community/perl-test-mockrandom/APKBUILD new file mode 100644 index 0000000000..3b001af6ea --- /dev/null +++ b/community/perl-test-mockrandom/APKBUILD @@ -0,0 +1,42 @@ +# 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=0 +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 || return 1 + + 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 && make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="5ea7e2ec70776129993721f7632d04da Test-MockRandom-1.01.tar.gz" +sha256sums="2614930d84fc5deac39afbc1ee86ccd39b221507f27d4ee493ca26e5c921cce0 Test-MockRandom-1.01.tar.gz" +sha512sums="e222bd0d3d7673b403e80d1633ddaca0ee35f96f2245e8df859d661edc7efc09b9a96d3718f25b6614395d1f24d66c9498e842cec476cf8c5b12464d585f85e7 Test-MockRandom-1.01.tar.gz" |