summaryrefslogtreecommitdiff
path: root/user/perl-sub-handlesvia/APKBUILD
blob: 1976d888934b719d7b3e4364001bd1f2ab09efb9 (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: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-sub-handlesvia
_pkgreal=Sub-HandlesVia
_author=TOBYINK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.046
pkgrel=0
pkgdesc="Alternative handles_via implementation for Moo"
url="https://metacpan.org/pod/Sub::HandlesVia"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-class-method-modifiers perl-class-tiny perl-exporter-tiny
	perl-role-hooks perl-role-tiny perl-type-tiny"
checkdepends="perl-moo perl-moose perl-mouse perl-object-pad perl-test-fatal
	perl-test-requires"
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="8138a8f769a1e980b4cc63fa382aa04804515b08c30d49d1b38de8d222cef6a333e0c5fd02263be29105550e04364155e1ce63364f67bd421711cbe083c1b2f3  Sub-HandlesVia-0.046.tar.gz"