aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-mouse/APKBUILD
blob: 1f621ae7e15b4fdb281c693d17afdf4b34148f2f (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-mouse
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Mouse
pkgver=2.5.10
pkgrel=0
pkgdesc="Perl module for Mouse"
url="https://metacpan.org/release/Mouse/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-module-build perl-module-build-xsutil"
makedepends="perl-dev"
checkdepends="perl-regexp-common perl-moose perl-path-class perl-test-leaktrace
	perl-test-requires perl-pod-coverage perl-test-exception perl-test-output"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SK/SKAJI/Mouse-v2.5.10.tar.gz"
builddir="$srcdir/$_pkgreal-v$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL --installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="949a2f18257a5afcf4dbbb84094974f4d80e1e4531b4b9d8618cf141252fd11b09b79daafe1de79faa620905988f649627bc2fceac357ea2f180db74cd48f711  Mouse-v2.5.10.tar.gz"