summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/perl_modules/perl-proc-processtable/PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/abs/core/perl_modules/perl-proc-processtable/PKGBUILD b/abs/core/perl_modules/perl-proc-processtable/PKGBUILD
index 8f5ffc1..19211fa 100644
--- a/abs/core/perl_modules/perl-proc-processtable/PKGBUILD
+++ b/abs/core/perl_modules/perl-proc-processtable/PKGBUILD
@@ -1,18 +1,18 @@
# $Id$
-# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=perl-proc-processtable
-pkgver=0.51
+pkgver=0.55
pkgrel=1
pkgdesc="Provides a consistent interface to process table information."
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="http://search.cpan.org/dist/Proc-ProcessTable/"
license=('PerlArtistic')
depends=('perl')
provides=('perl-proc-killall' 'perl-proc-killfam' 'perl-proc-processtable-process')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/J/JW/JWB/Proc-ProcessTable-$pkgver.tar.gz")
-md5sums=('711238eb8ce7f5583ffef084d8facceb')
+sha512sums=('2af3860c6d48508aecd1d97d323ede21318b801873a24fbc4340fa5b526ad7d1c5b55c52044a73cc92e6c0f5dac612c21089bb8cbe4b1d779bb3eb9a7b87bed1')
build() {
cd "$srcdir/Proc-ProcessTable-$pkgver"
@@ -32,4 +32,12 @@ package() {
make install DESTDIR="${pkgdir}"
find "${pkgdir}" -name perllocal.pod -delete
find "${pkgdir}" -name .packlist -delete
+
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
}