summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/perl_modules')
-rw-r--r--abs/core/perl_modules/perl-sdl/PKGBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/abs/core/perl_modules/perl-sdl/PKGBUILD b/abs/core/perl_modules/perl-sdl/PKGBUILD
index d8273a3..3f39048 100644
--- a/abs/core/perl_modules/perl-sdl/PKGBUILD
+++ b/abs/core/perl_modules/perl-sdl/PKGBUILD
@@ -1,13 +1,13 @@
-# $Id: PKGBUILD 168746 2012-10-15 12:11:10Z heftig $
+# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
pkgname=perl-sdl
-pkgver=2.540
-pkgrel=3
+pkgver=2.546
+pkgrel=6
pkgdesc="Simple DirectMedia Layer for Perl"
-arch=(i686 x86_64)
+arch=(x86_64)
license=(LGPL)
url="http://sdl.perl.org"
depends=(perl-alien-sdl perl-tie-simple
@@ -18,9 +18,9 @@ replaces=(sdl_perl)
conflicts=(sdl_perl)
provides=("sdl_perl=$pkgver")
# http://search.cpan.org/dist/SDL/
-_author=JTPALMER
+_author=FROGGS
source=(http://search.cpan.org/CPAN/authors/id/${_author::1}/${_author::2}/$_author/SDL-$pkgver.tar.gz)
-md5sums=('1a5d7849cbdfde4982b28458e38ab172')
+md5sums=('a93283d0fff67bdec5ff4bb8c1d30a09')
build() {
cd SDL-$pkgver
@@ -39,4 +39,12 @@ check() {
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;
}