[arch-commits] Commit in perl-digest-sha1/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Jun 2 16:34:29 UTC 2015
Date: Tuesday, June 2, 2015 @ 18:34:29
Author: fyan
Revision: 240211
upgpkg: perl-digest-sha1 2.13-6
perl 5.22 rebuild
Modified:
perl-digest-sha1/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-02 16:32:51 UTC (rev 240210)
+++ PKGBUILD 2015-06-02 16:34:29 UTC (rev 240211)
@@ -1,5 +1,5 @@
# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: kevin <kevin at archlinux.org>
# Contributor: Manolis Tzanidakis
@@ -6,7 +6,7 @@
pkgname=perl-digest-sha1
_realname=Digest-SHA1
pkgver=2.13
-pkgrel=5
+pkgrel=6
pkgdesc="Perl interface to the SHA-1 Algorithm"
arch=(i686 x86_64)
license=('PerlArtistic')
@@ -34,5 +34,12 @@
package() {
cd "${srcdir}/${_realname}-${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;
}
# vim: ts=2 sw=2 et ft=sh
More information about the arch-commits
mailing list