projects/aports·blob master · refs

36 lines · 1.1 KiB

1# Automatically generated by apkbuild-cpan, template 3
2# Contributor: Timothy Legge <[email protected]>
3# Maintainer: Timothy Legge <[email protected]>
4pkgname=perl-test-class-most
5#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
6_pkgreal=Test-Class-Most
7pkgver=0.08
8pkgrel=1
9pkgdesc="Test Classes the easy way"
10url="https://metacpan.org/release/Test-Class-Most/"
11arch="noarch"
12license="GPL-1.0-or-later OR Artistic-1.0-Perl"
13depends="perl"
14makedepends="perl-module-build perl-test-simple perl-test-class perl-test-most"
15subpackages="$pkgname-doc"
16source="https://cpan.metacpan.org/authors/id/O/OV/OVID/Test-Class-Most-$pkgver.tar.gz"
17builddir="$srcdir/$_pkgreal-$pkgver"
18
19build() {
20 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
21 perl Build.PL --installdirs=vendor
22 ./Build
23}
24
25check() {
26 ./Build test
27}
28
29package() {
30 ./Build install --destdir="$pkgdir"
31 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
32}
33
34sha512sums="
3530284e5c186727df87688176e3fb8683000796c8fc2f45d243c8a2ad42d4d52e840ca6f0baedf5dc9a7b6a246472ff96c92d0c407dbd65c5152a7cf5a61003c1 Test-Class-Most-0.08.tar.gz
36"