summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2017-09-05 11:27:50 -0600
committerBrian Bidulock2017-09-05 11:27:50 -0600
commit914956ebfd15bb08fb4b30b13c8bcd37eb4baf18 (patch)
tree80f4023c0e66f3577fa43c8a88611f024b7ac443
parent15cc6303e7c2f93c551c0d504c65e2e73d7b5707 (diff)
downloadaur-914956ebfd15bb08fb4b30b13c8bcd37eb4baf18.tar.gz
update for new perl
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD21
2 files changed, 7 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e8d905ed757..20505de1d50 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
pkgbase = perl-linux-smaps
pkgdesc = Linux::Smaps - a Perl interface to /proc/PID/smaps
pkgver = 0.13
- pkgrel = 3
+ pkgrel = 4
url = http://search.cpan.org/dist/Linux-Smaps/
changelog = ChangeLog
- arch = i686
- arch = x86_64
+ arch = any
license = GPL
license = PerlArtistic
depends = perl
diff --git a/PKGBUILD b/PKGBUILD
index 24e4237bb52..82cef3a36c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,35 +3,24 @@
pkgname=perl-linux-smaps
_pkgname=Linux-Smaps
pkgver=0.13
-pkgrel=3
+pkgrel=4
pkgdesc='Linux::Smaps - a Perl interface to /proc/PID/smaps'
-arch=('i686' 'x86_64')
+arch=('any')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_pkgname}/"
depends=('perl' 'perl-class-member')
changelog="ChangeLog"
-options=(!emptydirs)
+options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/O/OP/OPI/${_pkgname}-$pkgver.tar.gz)
md5sums=('28bbe178b1b26935c454fa8ccdd16929')
build() {
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;
+ make INSTALLDIRS=vendor
}
package() {
cd $_pkgname-$pkgver
- make PERL_MM_USE_DEFAULT=1 DESTDIR="$pkgdir" install
- _perl_depends
+ make INSTALLDIRS=vendor DESTDIR="$pkgdir" install
}