# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-params-validate _pkgreal=Params-Validate pkgver=1.28 pkgrel=0 pkgdesc="Validate method/function parameters" url="http://search.cpan.org/dist/Params-Validate/" arch="all" license="Artistic-2.0" 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 } sha512sums="e2ebf320c84120090224c5a22f313e11ff7317b433a82e20f9aa6706832e375ea31520d4d1ebcbd4aac68063c6c1addcea6c56002678a87cfabc9e4f4b4fad0d Params-Validate-1.28.tar.gz"