community/perl-ipc-run: upgrade to 0.96, added check() function

This commit is contained in:
Francesco Colista 2017-06-16 08:22:40 +00:00
parent 624caf9cec
commit 47b25f3cfe

View File

@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-ipc-run
_pkgreal=IPC-Run
pkgver=0.94
pkgver=0.96
pkgrel=0
pkgdesc="system() and background procs w/ piping, redirs, ptys (Unix, Win32)"
url="http://search.cpan.org/dist/IPC-Run/"
@ -15,25 +15,27 @@ depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
_builddir="$srcdir/$_pkgreal-$pkgver"
check() {
cd "$builddir"
make test
}
prepare() {
cd "$_builddir"
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$_builddir"
cd "$builddir"
make
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="c963902894d3796b16624b3b4aea94b4 IPC-Run-0.94.tar.gz"
sha256sums="2eb336c91a2b7ea61f98e5b2282d91020d39a484f16041e2365ffd30f8a5605b IPC-Run-0.94.tar.gz"
sha512sums="c42fb5e0a5085698bec3f970ba642c00ad947629bd30c1485ebd28e8e24db4273fa6439e0abeddbc602be66e4ebfcaaa7e8d3982ac8b82c3c6a8a431c170f721 IPC-Run-0.94.tar.gz"
sha512sums="8a531a2126c15653ab0230813985cc7c83f2c3467c987757fc1f04c3c9952ee0246bcf743dcc4381351c72989f7271ede16962cca24e030404e414ff000c57a8 IPC-Run-0.96.tar.gz"