summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/perl_modules/perl-params-validate/PKGBUILD31
1 files changed, 19 insertions, 12 deletions
diff --git a/abs/core/perl_modules/perl-params-validate/PKGBUILD b/abs/core/perl_modules/perl-params-validate/PKGBUILD
index f65387f..2dd4124 100644
--- a/abs/core/perl_modules/perl-params-validate/PKGBUILD
+++ b/abs/core/perl_modules/perl-params-validate/PKGBUILD
@@ -2,22 +2,29 @@
# Contributor: François Charette <firmicus ατ gmx δοτ net>
pkgname=perl-params-validate
-pkgver=0.91
-pkgrel=1
+pkgver=0.98
+pkgrel=2
pkgdesc="Validate sub params against a spec"
arch=('i686' 'x86_64')
-url="http://search.cpan.org/~DROLSKY/Params-Validate"
+url="http://search.cpan.org/dist/Params-Validate"
license=('GPL' 'PerlArtistic')
-depends=('perl>=5.10.0')
+depends=('perl')
options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/D/DR/DROLSKY/Params-Validate-$pkgver.tar.gz)
-md5sums=('22c5467a1d4673374a1b7b2dbcfd473e')
+source=("http://www.cpan.org/authors/id/D/DR/DROLSKY/Params-Validate-${pkgver}.tar.gz")
+md5sums=('6dacb26b1bdb6338b6eed45cd86958bb')
build() {
- cd $startdir/src/Params-Validate-$pkgver
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
- make install DESTDIR=$startdir/pkg || return 1
- find $startdir/pkg -name '.packlist' -delete
- find $startdir/pkg -name '*.pod' -delete
+ cd Params-Validate-${pkgver}
+
+ perl ./Build.PL --installdirs=vendor
+
+ ./Build
+}
+package(){
+ cd Params-Validate-${pkgver}
+
+ ./Build install --destdir=${pkgdir}
+
+ find ${pkgdir} -name '.packlist' -delete
+ find ${pkgdir} -name '*.pod' -delete
}