From 7da6d3e2ab97b506c0f04760056ba86d49c48d80 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 31 May 2018 16:11:05 +0000 Subject: perl-sdl: update to 2.546 --- abs/core/perl_modules/perl-sdl/PKGBUILD | 20 ++++++++++++++------ 1 file 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) # Contributor: Allan McRae # Contributor: Sarah Hay 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; } -- cgit v0.12