[arch-commits] Commit in perl-net-dns/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Jun 3 02:40:08 UTC 2015


    Date: Wednesday, June 3, 2015 @ 04:40:07
  Author: fyan
Revision: 240263

upgpkg: perl-net-dns 0.83-2

perl 5.22 rebuild

Modified:
  perl-net-dns/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-03 02:35:45 UTC (rev 240262)
+++ PKGBUILD	2015-06-03 02:40:07 UTC (rev 240263)
@@ -3,12 +3,12 @@
 
 pkgname=perl-net-dns
 pkgver=0.83
-pkgrel=1
+pkgrel=2
 pkgdesc="Perl Module: Interface to the DNS resolver"
 arch=('i686' 'x86_64')
 license=('PerlArtistic')
 url="http://search.cpan.org/dist/Net-DNS/"
-depends=('perl-digest-hmac' 'perl-net-ip' 'perl')
+depends=('perl-digest-hmac' 'perl-net-ip')
 checkdepends=('perl-test-pod')
 optdepends=('perl-io-socket-inet6: IPv6 support'
             'perl-socket6: IPv6 support')
@@ -30,4 +30,11 @@
 package() {
   cd Net-DNS-${pkgver}
   make DESTDIR="${pkgdir}" install
+# 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;
 }



More information about the arch-commits mailing list