diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-14 14:59:30 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-14 14:59:39 +0000 |
commit | 8e7b7aee8760c336a0a1471a552d97a77e63b42e (patch) | |
tree | 85b52cc97049f9665dc4f21ad155fb89759c3bba /main/perl-params-validationcompiler | |
parent | 8179989d9491db2e4a6bb5a629b7566b32e37399 (diff) | |
download | aports-8e7b7aee8760c336a0a1471a552d97a77e63b42e.tar.bz2 aports-8e7b7aee8760c336a0a1471a552d97a77e63b42e.tar.xz |
main/perl-params-validationcompiler: modernize APKBUILD, add check()
Diffstat (limited to 'main/perl-params-validationcompiler')
-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 } |