aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-params-validationcompiler/APKBUILD
blob: ee632a876035d7abb7dde57a9eff68ec35b5dd93 (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
38
39
40
41
42
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-params-validationcompiler
_pkgreal="Params-ValidationCompiler"
pkgver=0.13
pkgrel=0
pkgdesc="Params::ValidationCompiler perl module"
url="http://search.cpan.org/~drolsky/"
arch="noarch"
license="GPL or Artistic 2"
depends="perl-specio perl-test2-suite perl-test-simple perl-test-without-module
	perl-eval-closure perl-exception-class perl-test2-plugin-nowarnings"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgreal-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test || return 1
}

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

md5sums="e654da776110d5e821c43b2f30f03d68  Params-ValidationCompiler-0.13.tar.gz"
sha256sums="c4326f6802ff0041b33b4546231ae64091623e8306f969c64a648d12ae8b7c03  Params-ValidationCompiler-0.13.tar.gz"
sha512sums="483a586a96050f3cfc93445e3ad959d15d097f8543bf51dece0fc901ebd914a69d869a0b21f60458d38c6af7cb9f4b1ec6c9cf5b7e4045037088cd98bf92052d  Params-ValidationCompiler-0.13.tar.gz"