summaryrefslogtreecommitdiff
path: root/user/perl-specio/APKBUILD
blob: 2952124bc3e1da2bd8f1a38fd4f87f4bf7edd9ba (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-specio
_pkgreal=Specio
_author=DROLSKY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.46
pkgrel=0
pkgdesc="Type constraints and coercions for Perl"
url="https://metacpan.org/release/Specio"
arch="noarch"
license="Artistic-2.0"
depends="perl-devel-stacktrace perl-eval-closure perl-mro-compat
	perl-module-runtime perl-role-tiny perl-sub-quote perl-test-fatal
	perl-try-tiny"
checkdepends="perl-test-needs"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$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="8dfc0e87bd640bd30aa9a92118f77305565dee2441f95c7e9f311b517c07573e3a0e977ea348eaf879dfafe6edc3c0d89625f28b5f3f0f2bff789178cd513802  Specio-0.46.tar.gz"