aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-moosex-types/APKBUILD
blob: dff74383eee765f376bb083cc2973a7c52cfe414 (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
35
36
37
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-moosex-types
_pkgreal=MooseX-Types
pkgver=0.50
pkgrel=2
pkgdesc="Organise your Moose types in libraries"
url="https://metacpan.org/release/MooseX-Types/"
arch="noarch"
license="GPL-1.0-or-later Artistic-1.0-Perl"
cpandepends="perl-carp-clan perl-sub-install perl-moose perl-sub-exporter-formethods
	perl-namespace-autoclean perl-module-runtime perl-sub-name perl-sub-exporter"
cpancheckdepends="perl-test-requires perl-test-fatal"
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-$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="42606b1caeb6423acaaa9288239c63512f398a2fba45492443d3e003c6ae3e93cbd8ea2631d487e428ea7d25b63744e4c2096a1e53012e262c99ff4b0c29484b  MooseX-Types-0.50.tar.gz"