# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-params-validate _pkgreal=Params-Validate pkgver=1.06 pkgrel=1 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 " 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="4f7a281269cd30d7c3994ba5acb50857 Params-Validate-1.06.tar.gz"