# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-params-validate _pkgreal=Params-Validate pkgver=1.10 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="be70733a36b5e941da8c985b664e4028 Params-Validate-1.10.tar.gz" sha256sums="fa6bb187cd4e0c5d71c60883aa550c467c7431a52611475fb38fd9d3ff7b0cc8 Params-Validate-1.10.tar.gz" sha512sums="5e7f3254023591986c1e7e2ec9a80644a71fb3828f25ab42fb942344e340cfa3dee82382ec7c77eb4642ba424795a748f33ced09f60eb8d686889b2cbcfbe33b Params-Validate-1.10.tar.gz"