summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2017-06-09 18:16:00 -0600
committerBrian Bidulock2017-06-09 18:16:00 -0600
commit15cc6303e7c2f93c551c0d504c65e2e73d7b5707 (patch)
treebaa1e7a70fdfcd5fd76b893456c5e8592f004d64
parenta996fcdadf50512e9ff39985dee059657b026389 (diff)
downloadaur-15cc6303e7c2f93c551c0d504c65e2e73d7b5707.tar.gz
update for perl 5.26.0 with template
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD19
2 files changed, 16 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f857ad944b3..e8d905ed757 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = perl-linux-smaps
pkgdesc = Linux::Smaps - a Perl interface to /proc/PID/smaps
pkgver = 0.13
- pkgrel = 2
+ pkgrel = 3
url = http://search.cpan.org/dist/Linux-Smaps/
changelog = ChangeLog
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 9bd4c1dbd28..24e4237bb52 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=perl-linux-smaps
_pkgname=Linux-Smaps
pkgver=0.13
-pkgrel=2
+pkgrel=3
pkgdesc='Linux::Smaps - a Perl interface to /proc/PID/smaps'
arch=('i686' 'x86_64')
license=('GPL' 'PerlArtistic')
@@ -15,12 +15,23 @@ source=(http://search.cpan.org/CPAN/authors/id/O/OP/OPI/${_pkgname}-$pkgver.tar.
md5sums=('28bbe178b1b26935c454fa8ccdd16929')
build() {
- cd $srcdir/${_pkgname}-$pkgver
+ cd $_pkgname-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
+_perl_depends() {
+# 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;
+}
+
package() {
- cd $srcdir/${_pkgname}-$pkgver
- make install DESTDIR=$pkgdir
+ cd $_pkgname-$pkgver
+ make PERL_MM_USE_DEFAULT=1 DESTDIR="$pkgdir" install
+ _perl_depends
}