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

Evangelos Foutras foutrelis at archlinux.org
Sun Jun 14 15:26:05 UTC 2015


    Date: Sunday, June 14, 2015 @ 17:26:05
  Author: foutrelis
Revision: 240757

upgpkg: perl-crypt-ssleay 0.72-3

Perl 5.22 rebuild.

Modified:
  perl-crypt-ssleay/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-14 15:20:53 UTC (rev 240756)
+++ PKGBUILD	2015-06-14 15:26:05 UTC (rev 240757)
@@ -4,7 +4,7 @@
 
 pkgname=perl-crypt-ssleay
 pkgver=0.72
-pkgrel=2
+pkgrel=3
 pkgdesc="OpenSSL glue that provides LWP https support"
 arch=('i686' 'x86_64')
 url="http://search.cpan.org/dist/Crypt-SSLeay"
@@ -11,7 +11,7 @@
 license=('GPL' 'PerlArtistic')
 depends=('perl-lwp-protocol-https' 'perl-try-tiny' 'perl-path-class')
 options=('!emptydirs')
-source=(http://www.cpan.org/CPAN/authors/id/N/NA/NANIS/Crypt-SSLeay-$pkgver.tar.gz) 
+source=(http://www.cpan.org/CPAN/authors/id/N/NA/NANIS/Crypt-SSLeay-$pkgver.tar.gz)
 md5sums=('77d955c9056dbb12413d95d8852a9cdf')
 
 build() {
@@ -34,4 +34,12 @@
 
   find ${pkgdir} -name '.packlist' -delete
   find ${pkgdir} -name '*.pod' -delete
+
+# 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