aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-moo/APKBUILD
blob: 9fb47a079ae48eecb34600cc6569d375aade75fc (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
39
40
41
42
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-moo
_pkgreal=Moo
pkgver=2.004000
pkgrel=1
pkgdesc="Minimalist Object Orientation (with Moose compatibility)"
url="https://metacpan.org/release/Moo"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-module-runtime perl-sub-quote perl-role-tiny
	perl-devel-globaldestruction perl-class-method-modifiers"
makedepends="perl-dev"
checkdepends="perl-strictures perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Moo-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

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

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

sha512sums="154a4246e69120e98d0955ffe34f890a199c6ad145f3428481caa89d07614ae25cc4c0bcfb474311f85393520ca0e9551cfdeac4a2958b231895e4556c2abb0a  Moo-2.004000.tar.gz"