aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-specio/APKBUILD
blob: 1450df57905cf6439849b78aaae3b2c7603823b7 (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-specio
_pkgreal=Specio
pkgver=0.48
pkgrel=1
pkgdesc="Type constraints and coercions for Perl"
url="https://metacpan.org/release/Specio"
arch="noarch"
license="Artistic-2.0"
depends="
	perl perl-sub-quote perl-devel-stacktrace perl-role-tiny perl-mro-compat perl-try-tiny
	perl-test-fatal perl-eval-closure perl-module-runtime
	"
checkdepends="perl-test-needs"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Specio-$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="
76fd2aa398008238d55714700581782c95b635a4d4198b1c51daecfec770b61b9898351cbc2bf999f4d837691de657c51a94581c0f0b21b67b605770d507729a  Specio-0.48.tar.gz
"