aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-params-validate/APKBUILD
blob: c60d5d6b145d0b5b27c9626cd5ac9e6ffed34a6b (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.13
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="51061593757a172a98ce15097e2da5d6  Params-Validate-1.13.tar.gz"
sha256sums="6aa31630329952e53e58a81d113995dfa11f786028a1c23892942598ee384be4  Params-Validate-1.13.tar.gz"
sha512sums="62a9b76a26f62b4023c2066aa4c630e333f80f9b6825d6423b903d680255d346c0ae0482ebadeee32cd7f08223a81fe1e4e09aed65d01875c39e28e187a995e6  Params-Validate-1.13.tar.gz"