summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2017-06-09 01:16:12 -0600
committerBrian Bidulock2017-06-09 01:16:12 -0600
commit81f3d7b93b0c53d9d4c7699714d72a72bc296bcf (patch)
tree142399e8034515ef4a8c608092b389e58515f430
parentc14428755faf6492f92f7db59e58dc0c80efc594 (diff)
downloadaur-81f3d7b93b0c53d9d4c7699714d72a72bc296bcf.tar.gz
updates for perl 5.26.0
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD14
2 files changed, 14 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c6b89d993de..588987d8c01 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -12,4 +12,7 @@ pkgbase = perl-geoip
md5sums = 32a7c8775d7b7748f9b940c4fa0bc233
pkgname = perl-geoip
+ depends = geoip
+ depends = perl>=
+ depends = perl<
diff --git a/PKGBUILD b/PKGBUILD
index a5a623f5d24..d87842991a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,36 @@
# Maintainer: Sebastien Bariteau <numkem@gmail.com>
pkgname=perl-geoip
+_gitname=geoip-api-perl
pkgver=1.50
pkgrel=1
pkgdesc="GeoIP Perl API"
arch=(i686 x86_64)
license=(GPL)
url="https://github.com/maxmind/geoip-api-perl"
-source=("https://github.com/maxmind/geoip-api-perl/archive/v${pkgver}.zip")
+source=("https://github.com/maxmind/${_gitname}/archive/v${pkgver}.zip")
md5sums=('32a7c8775d7b7748f9b940c4fa0bc233')
depends=('geoip')
provides=('Cassandra::Simple')
build() {
- cd "$srcdir/geoip-api-perl-${pkgver}"
+ cd ${_gitname}-${pkgver}
# install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
- cd "$srcdir/geoip-api-perl-${pkgver}"
+ cd ${_gitname}-${pkgver}
make install DESTDIR=${pkgdir}
# remove perllocal.pod and .packlist
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;
}