core/perl-ipc-run3/PKGBUILD
2012-05-10 19:19:00 +00:00

43 lines
1.1 KiB
Bash

# Platform packages for Chakra
pkgname='perl-ipc-run3'
pkgver='0.045'
pkgrel='1'
pkgdesc="run a subprocess with input/ouput redirection"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
makedepends=()
url='http://search.cpan.org/dist/IPC-Run3'
source=('http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/IPC-Run3-0.045.tar.gz')
md5sums=('e8913c03a8a6c6297a6e622d656e343a')
sha512sums=('966657fb3b6b3db02b00017f3f77a76610e848dc119d61dc28eb5b72dfe2d691fb2e210336127a2e4520ea465e4d9e412c980795e8e5c354b9874761c4123944')
_distdir="${srcdir}/IPC-Run3-0.045"
build() {
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
cd "$_distdir"
/usr/bin/perl Makefile.PL
make
)
}
check() {
cd "$_distdir"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
cd "$_distdir"
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}