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

Felix Yan fyan at archlinux.org
Wed Jun 3 02:57:20 UTC 2015


    Date: Wednesday, June 3, 2015 @ 04:57:19
  Author: fyan
Revision: 240269

upgpkg: gtk2-perl 1.2495-2

perl 5.22 rebuild

Modified:
  gtk2-perl/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-03 02:51:56 UTC (rev 240268)
+++ PKGBUILD	2015-06-03 02:57:19 UTC (rev 240269)
@@ -4,7 +4,7 @@
 
 pkgname=gtk2-perl
 pkgver=1.2495
-pkgrel=1
+pkgrel=2
 pkgdesc="Perl bindings for GTK+ 2.x"
 arch=(i686 x86_64)
 license=('LGPL')
@@ -36,4 +36,11 @@
 package() {
   cd Gtk2-$pkgver
   make install DESTDIR="${pkgdir}"
+# 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