[arch-commits] Commit in perl-text-iconv/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Wed Jun 3 02:11:43 UTC 2015
Date: Wednesday, June 3, 2015 @ 04:11:43
Author: fyan
Revision: 240255
upgpkg: perl-text-iconv 1.7-10
perl 5.22 rebuild
Modified:
perl-text-iconv/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-03 02:10:57 UTC (rev 240254)
+++ PKGBUILD 2015-06-03 02:11:43 UTC (rev 240255)
@@ -1,11 +1,11 @@
# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Francois Charette <firmicus at gmx.net>
pkgname=perl-text-iconv
_realname=Text-Iconv
pkgver=1.7
-pkgrel=9
+pkgrel=10
pkgdesc="Interface to iconv codeset conversion"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/${_realname}/"
@@ -29,4 +29,11 @@
package() {
cd "${srcdir}/${_realname}-${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