aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-moosex-types-common/APKBUILD
blob: 913a0f87dfe8201641a6c28127e2a7eeedff84cd (plain) (blame)
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
# 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=2
pkgdesc="A library of commonly used type constraints"
url="https://metacpan.org/release/MooseX-Types-Common/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-moosex-types"
checkdepends="perl-test-deep perl-test-warnings"
makedepends="perl-devel-overloadinfo perl-module-build-tiny perl-dev"
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"