aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-params-validationcompiler/APKBUILD
blob: 8578bdd0a082b5a6f53080122c440c45a08eb7b9 (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-params-validationcompiler
_pkgreal=Params-ValidationCompiler
pkgver=0.27
pkgrel=0
pkgdesc="Params::ValidationCompiler perl module"
url="https://metacpan.org/release/Params-ValidationCompiler"
arch="noarch"
license="GPL or Artistic-2.0"
depends="perl-specio perl-test2-suite perl-test-simple perl-test-without-module
	perl-eval-closure perl-exception-class perl-test2-plugin-nowarnings
	perl-role-tiny perl-mro-compat"
makedepends="perl-dev"
checkdepends="perl-type-tiny"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="1c045e7b4b68f7b54cc3f1aa927c515b7662ddd5252baf22be149365b7087b5910219d3e08752e005cfd89a10a740fb2e1a41d8f7fed8765a56eade5d406c9dc  Params-ValidationCompiler-0.27.tar.gz"