summaryrefslogtreecommitdiff
path: root/user/perl-moosex-getopt/APKBUILD
blob: 32e3bb6d5726eafed863580b5409e5a52bdf08cf (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: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-moosex-getopt
_pkgreal=MooseX-Getopt
_author=ETHER
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.75
pkgrel=0
pkgdesc="Perl Moose role for processing command line arguments"
url="https://metacpan.org/release/MooseX-Getopt"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl-getopt-long-descriptive perl-moose perl-moosex-role-parameterised
	perl-namespace-autoclean perl-try-tiny perl"
checkdepends="perl-moosex-strictconstructor perl-path-tiny perl-test-deep
	perl-test-fatal perl-test-needs perl-test-trap perl-test-warnings"
makedepends="perl-dev perl-module-build-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_FALLBACK_SILENCE_WARNING=1 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="b02a8aad4c1c12fc98bf68d68cd72bcc32c82103d5f4ab79345e09354b32f697876571fb7a15987db5d0fc44af113a8d9e588cb2447b9db4d2ff6da242a8010a  MooseX-Getopt-0.75.tar.gz"