aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-moosex/APKBUILD
blob: 794cd4dc6e6c92d751c6bbed1ac2d4afef98c8e5 (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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-moosex
_pkgreal=MooseX
pkgver=0.002
pkgrel=0
pkgdesc="Document the MooseX namespace"
url="https://metacpan.org/release/MooseX/"
arch="noarch"
license="GPL PerlArtistic"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/MooseX-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

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

sha512sums="89873ed54db7ef67ee5dca01395052dc4e74666c7d022c8427c46bc068e5a5d58c9abd3be0fed0320e43f5be32b80f2364c6e8c6c6baff82855a25cb0f8c9363  MooseX-0.002.tar.gz"