aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-moose/APKBUILD
blob: e94627de1c4c4239d96e11ed02cdda5237fc61e3 (plain)
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
39
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-moose
_pkgreal=Moose
pkgver=2.2012
pkgrel=0
pkgdesc="A postmodern object system for Perl 5"
options="!check" # Tests introduce circular dependencies
url="https://metacpan.org/release/Moose"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-task-weaken perl-package-stash perl-class-load-xs
	perl-module-runtime perl-dist-checkconflicts perl-package-stash-xs
	perl-package-deprecationmanager perl-sub-exporter perl-params-util
	perl-devel-stacktrace perl-sub-name perl-module-runtime-conflicts
	perl-class-load perl-eval-closure perl-list-moreutils perl-try-tiny
	perl-data-optlist perl-devel-globaldestruction perl-mro-compat"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
options="!check"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Moose-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}


sha512sums="195079c32ce0110ae5d76bc1753b9e5c9aa8b3132049912d85600b7d29470b3426e10ccac50a24acbadbb8e00b68c99a98ca975a001b12096b02f2fa1c1264f3  Moose-2.2012.tar.gz"