# Packager: Dimitris Tzemos pkgname=perl-SDL pkgver=2.546 pkgrel=2dj _author=FROGGS source=(http://search.cpan.org/CPAN/authors/id/${_author::1}/${_author::2}/$_author/SDL-$pkgver.tar.gz) docs=("readme") uurl="http://sdl.perl.org" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-SDL (Simple DirectMedia Library Bindings for Perl)" "perl-SDL is glue (bindings) between SDL and Perl." "Homepage: http://sdl.perl.org/" ) build() { cd $startdir/src/SDL-$pkgver perl Build.PL \ prefix=/usr \ installdirs=vendor \ optimize="$SLKCFLAGS" \ destdir=$PKG ./Build # Skip the tests as they seems to be pretty much hit or miss. #./Build test ./Build install \ --install_path bindoc=/usr/man/man1 \ --install_path libdoc=/usr/man/man3 find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true find $PKG -depth -type d -empty -delete || true }