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

Jan Steffens heftig at archlinux.org
Wed Jun 3 21:23:25 UTC 2015


    Date: Wednesday, June 3, 2015 @ 23:23:25
  Author: heftig
Revision: 240309

2.546

Modified:
  perl-sdl/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-03 21:15:13 UTC (rev 240308)
+++ PKGBUILD	2015-06-03 21:23:25 UTC (rev 240309)
@@ -4,7 +4,7 @@
 # Contributor: Sarah Hay <sarahhay at mb.sympatico.ca>
 
 pkgname=perl-sdl
-pkgver=2.544
+pkgver=2.546
 pkgrel=1
 pkgdesc="Simple DirectMedia Layer for Perl"
 arch=(i686 x86_64)
@@ -20,7 +20,7 @@
 # http://search.cpan.org/dist/SDL/
 _author=FROGGS
 source=(http://search.cpan.org/CPAN/authors/id/${_author::1}/${_author::2}/$_author/SDL-$pkgver.tar.gz)
-md5sums=('ae3c7cd3ec73f96f1c10e29521b19e97')
+md5sums=('a93283d0fff67bdec5ff4bb8c1d30a09')
 
 build() {
   cd SDL-$pkgver
@@ -39,4 +39,12 @@
 package() {
   cd SDL-$pkgver
   perl Build 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