Commit a0dd9211 authored by Jeff Huang's avatar Jeff Huang

perl-sdl: update to 2.546

parent a80b1b0d
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# contributor: abveritas@chakra-project.org
pkgname=perl-sdl
pkgver=2.540
pkgrel=3
pkgver=2.546
pkgrel=1
pkgdesc="Simple DirectMedia Layer for Perl."
arch=('x86_64')
license=(LGPL)
......@@ -15,18 +12,34 @@ options=('!emptydirs')
replaces=(sdl_perl)
conflicts=(sdl_perl)
provides=("sdl_perl=${pkgver}")
source=(http://search.cpan.org/CPAN/authors/id/J/JT/JTPALMER/SDL-${pkgver}.tar.gz)
md5sums=('1a5d7849cbdfde4982b28458e38ab172')
# 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=('a93283d0fff67bdec5ff4bb8c1d30a09')
build() {
cd "${srcdir}/SDL-${pkgver}"
#unset CFLAGS
# Perl selects the proper CFLAGS set for binary modules
unset CFLAGS
# install module in vendor directories
perl Build.PL installdirs=vendor
perl Build
}
check() {
cd SDL-$pkgver
perl Build test || true
}
package() {
cd "${srcdir}/SDL-${pkgver}"
perl Build install destdir="${pkgdir}"
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment