summaryrefslogtreecommitdiff
path: root/user/perl-moosex-role-parameterised/APKBUILD
blob: ba1f32d221177d7f6e5712ccb193244ebb591a71 (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
38
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-moosex-role-parameterised
_pkgreal=MooseX-Role-Parameterized
_author=ETHER
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.11
pkgrel=0
pkgdesc="Perl Moose roles with composition parameters"
url="https://metacpan.org/release/MooseX-Role-Parameterized"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-module-runtime perl-moose perl-namespace-autoclean
	perl-namespace-clean"
checkdepends="perl-cpan-meta-check perl-dist-checkconflicts perl-test-fatal
	perl-test-needs perl-test-requires"
makedepends="perl-dev perl-module-build-tiny"
provides="perl-moosex-role-parameterized=$pkgver-r$pkgrel"
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="7442a10f1593cecfcb01e93f314bcb6ebe95b4b9710262ef5dc7d8065ae118a96e0abbbc9f7b8986c33185a8b8aec60cf8639c0fd6eee4fb94f2e33d95eb7ed9  MooseX-Role-Parameterized-1.11.tar.gz"