From 8e7b7aee8760c336a0a1471a552d97a77e63b42e Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Wed, 14 Jun 2017 14:59:30 +0000 Subject: main/perl-params-validationcompiler: modernize APKBUILD, add check() --- main/perl-params-validationcompiler/APKBUILD | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'main/perl-params-validationcompiler') diff --git a/main/perl-params-validationcompiler/APKBUILD b/main/perl-params-validationcompiler/APKBUILD index 77708e2a1f..7bff4113c8 100644 --- a/main/perl-params-validationcompiler/APKBUILD +++ b/main/perl-params-validationcompiler/APKBUILD @@ -2,7 +2,7 @@ pkgname=perl-params-validationcompiler _pkgreal="Params-ValidationCompiler" pkgver=0.24 -pkgrel=0 +pkgrel=1 pkgdesc="Params::ValidationCompiler perl module" url="http://search.cpan.org/~drolsky/" arch="noarch" @@ -15,26 +15,22 @@ checkdepends="perl-type-tiny" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-ValidationCompiler-$pkgver.tar.gz" -_builddir="$srcdir"/$_pkgreal-$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 -} +builddir="$srcdir"/$_pkgreal-$pkgver build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make && make test || return 1 + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -- cgit v1.2.3