aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-params-validate/APKBUILD
blob: 70f4b749c2ae93ff657825a394a5cc7ef894c16d (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.20
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 perl-module-build"
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="e7d669585d18f010244251c3b10837e1  Params-Validate-1.20.tar.gz"
sha256sums="766cdaf89c515c33f384c1eebd59547cf44f2fec85a11efd5521041af65352e2  Params-Validate-1.20.tar.gz"
sha512sums="607b1328f6f4a5d616eee17559dbd9a75f39f7e9b3b43f09970b8c66e395800810bcd33dd1c0d8494a70e97d9c684a374e403e8359a1407f5c0791d0e66415a6  Params-Validate-1.20.tar.gz"