summaryrefslogtreecommitdiff
path: root/user/perl-sub-handlesvia/APKBUILD
blob: a08154150c2ce40d98191c82d88690a15a43a298 (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.045
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="027d03c098dcd0ad4b6837deea30b1049e652b0257045f11009839711013244a59bc39f12520ca9a79021e94b89f1c0ce456b4d410c7030f45e1c296dc1ec48a  Sub-HandlesVia-0.045.tar.gz"