diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-31 16:11:05 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-31 16:11:05 (GMT) |
commit | 7da6d3e2ab97b506c0f04760056ba86d49c48d80 (patch) | |
tree | c767029020c56bceed8cbe419c9fa9c829721310 | |
parent | 6e797d6b7ce7b9fd13df8530897f4db5bf022da4 (diff) | |
download | linhes_pkgbuild-7da6d3e2ab97b506c0f04760056ba86d49c48d80.zip linhes_pkgbuild-7da6d3e2ab97b506c0f04760056ba86d49c48d80.tar.gz linhes_pkgbuild-7da6d3e2ab97b506c0f04760056ba86d49c48d80.tar.bz2 |
perl-sdl: update to 2.546
-rw-r--r-- | abs/core/perl_modules/perl-sdl/PKGBUILD | 20 |
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; } |