aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-moox-types-mooselike-numeric/APKBUILD
blob: 820126cc56221ae4c7dda310923b9f0791173277 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-moox-types-mooselike-numeric
_pkgreal=MooX-Types-MooseLike-Numeric
pkgver=1.03
pkgrel=1
pkgdesc="Moo types for numbers"
url="https://metacpan.org/release/MooX-Types-MooseLike-Numeric/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-moox-types-mooselike"
makedepends="perl-dev perl-test-fatal perl-moo"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MATEU/MooX-Types-MooseLike-Numeric-$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="34f35c6083f3338ba07031b90971ba8b432e5d9210b0b0a2ed4252401b8374301314372a3565a26cf86296fca418f63c35bf1fe495bdb4e7c8e6ee16c546ec54  MooX-Types-MooseLike-Numeric-1.03.tar.gz"