diff options
Diffstat (limited to 'community/perl-test-mockrandom/APKBUILD')
-rw-r--r-- | community/perl-test-mockrandom/APKBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/community/perl-test-mockrandom/APKBUILD b/community/perl-test-mockrandom/APKBUILD index 3b001af6ea..e65f5aaeed 100644 --- a/community/perl-test-mockrandom/APKBUILD +++ b/community/perl-test-mockrandom/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-test-mockrandom _pkgreal=Test-MockRandom pkgver=1.01 -pkgrel=0 +pkgrel=1 pkgdesc="Replaces random number generation with non-random number generation" url="http://search.cpan.org/dist/Test-MockRandom/" arch="noarch" @@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.t builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') @@ -28,15 +28,18 @@ prepare() { build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install 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" |