diff options
-rw-r--r-- | main/perl-params-validationcompiler/APKBUILD | 28 |
1 files changed, 12 insertions, 16 deletions
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 } |