aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/perl-params-validate/APKBUILD37
1 files changed, 18 insertions, 19 deletions
diff --git a/main/perl-params-validate/APKBUILD b/main/perl-params-validate/APKBUILD
index dbffdb7bd..7f72dbb7e 100644
--- a/main/perl-params-validate/APKBUILD
+++ b/main/perl-params-validate/APKBUILD
@@ -1,39 +1,38 @@
-# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-params-validate
+_pkgreal=Params-Validate
pkgver=1.06
-pkgrel=0
-pkgdesc="Params-Validate Perl module"
+pkgrel=1
+pkgdesc="Validate method/function parameters"
url="http://search.cpan.org/dist/Params-Validate/"
arch="all"
-license="GPL+ or Artistic"
-depends="perl"
-makedepends="perl-dev"
-install=""
+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/Params-Validate-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
-_builddir="$srcdir"/Params-Validate-$pkgver
prepare() {
- local i
cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ perl Build.PL installdirs=vendor || return 1
}
build() {
cd "$_builddir"
- unset CFLAGS
- perl Build.PL installdirs=vendor || return 1
- ./Build
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build && ./Build test
}
package() {
cd "$_builddir"
- ./Build install destdir="$pkgdir" create_packlist=0 || return 1
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="4f7a281269cd30d7c3994ba5acb50857 Params-Validate-1.06.tar.gz"