summaryrefslogtreecommitdiff
path: root/user/perl-moox/APKBUILD
blob: 0a1c236601e2314c31ca467fb8a279c9f5a2b4a1 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-moox
_pkgreal=MooX
_author=GETTY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.101
pkgrel=0
pkgdesc="Perl module for using Moo and MooX:: lazily"
url="https://metacpan.org/release/MooX"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-data-optlist perl-import-into perl-module-runtime perl-moo"
makedepends="perl-dev"
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="4ba77d472c3ffab5ff600c20bd2d2b51614db9d5488fad7d8a51ee6249505519220a00437192d0c7132cbf6898bf1ff314d5c28132abbcfeb4be17d131ad7778  MooX-0.101.tar.gz"