summaryrefslogblamecommitdiff
path: root/user/perl-test-mockrandom/APKBUILD
blob: 8711be98731d7c8bdbd75550685fc3cb922bff65 (plain) (tree)
1
2
3
4
5
6
7

                                                                   


                               





                                                                             
                      
                          
                                                                                        
         



                                                                 


                 



                                                                                                                                                                          
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-mockrandom
_pkgreal=Test-MockRandom
_author=DAGOLDEN
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
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"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="e222bd0d3d7673b403e80d1633ddaca0ee35f96f2245e8df859d661edc7efc09b9a96d3718f25b6614395d1f24d66c9498e842cec476cf8c5b12464d585f85e7  Test-MockRandom-1.01.tar.gz"