summaryrefslogtreecommitdiffstats
path: root/main/perl-params-validate/APKBUILD
blob: 294efded223b9d5bd6e2f8cb5ba8e4e9d035fe18 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-params-validate
_pkgreal=Params-Validate
pkgver=1.18
pkgrel=0
pkgdesc="Validate method/function parameters"
url="http://search.cpan.org/dist/Params-Validate/"
arch="all"
license="Artistic-2"
cpandepends="perl-module-implementation"
cpanmakedepends="perl-test-fatal perl-module-implementation perl-test-requires"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

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

md5sums="2d6c94dd441cd96f98844aa19ebdbcb2  Params-Validate-1.18.tar.gz"
sha256sums="b25d2488d326f0cfa303cba7ed64fed9ec698b7bfc5d408f0b71058af39206c1  Params-Validate-1.18.tar.gz"
sha512sums="246ad15960aa192ec754e3640f518d85c1e9ba289b9a59ff72b39833858ceb8bd87fb1faf921a503bde4eda35b88d328ef134c603f498c67111ab4735f0886df  Params-Validate-1.18.tar.gz"