[arch-commits] Commit in perl-dbd-sqlite/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Jun 2 16:28:01 UTC 2015
Date: Tuesday, June 2, 2015 @ 18:28:01
Author: fyan
Revision: 240205
upgpkg: perl-dbd-sqlite 1.46-2
perl 5.22 rebuild
Modified:
perl-dbd-sqlite/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-02 15:25:26 UTC (rev 240204)
+++ PKGBUILD 2015-06-02 16:28:01 UTC (rev 240205)
@@ -3,7 +3,7 @@
pkgname=perl-dbd-sqlite
pkgver=1.46
-pkgrel=1
+pkgrel=2
pkgdesc="Self-contained RDBMS in a DBI driver"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/DBD-SQLite"
@@ -27,4 +27,11 @@
package() {
cd DBD-SQLite-${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