aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-moosex-types-common/APKBUILD
blob: ef16b7c7e37eab689d1318feb7f8c1421b22052c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-moosex-types-common
_pkgreal=MooseX-Types-Common
pkgver=0.001014
pkgrel=1
pkgdesc="A library of commonly used type constraints"
url="https://metacpan.org/release/MooseX-Types-Common/"
arch="noarch"
license="GPL-1.0-or-later Artistic-1.0-Perl"
cpandepends="perl-moosex-types"
cpancheckdepends="perl-test-deep perl-test-warnings"
depends="$cpandepends"
makedepends="perl-devel-overloadinfo perl-module-build-tiny perl-dev"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/MooseX-Types-Common-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="631272d1de97ac2e83d096e6ee2a238f583cc48d4281c2efd9b99620fd1fabd3280b6dc950b51e61abd94c80b20be1e19a94be58de0f7d6209908ee03284c513  MooseX-Types-Common-0.001014.tar.gz"