summaryrefslogtreecommitdiff
path: root/testing/perl-sdl
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-28 17:43:57 +0000
committerroot <root@rshg054.dnsready.net>2012-05-28 17:43:57 +0000
commit483f7de4ab6a706517279a24d2efc969f4a1996d (patch)
tree128a7513d3e42c4d8812b5fd11a4afb116399762 /testing/perl-sdl
parent89dd7b5f30d48c708092a71b1c8285090fe91505 (diff)
Mon May 28 17:43:57 UTC 2012
Diffstat (limited to 'testing/perl-sdl')
-rw-r--r--testing/perl-sdl/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/perl-sdl/PKGBUILD b/testing/perl-sdl/PKGBUILD
new file mode 100644
index 000000000..7270328c8
--- /dev/null
+++ b/testing/perl-sdl/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 159909 2012-05-27 07:43:45Z bluewind $
+# 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.536
+pkgrel=1
+pkgdesc="Simple DirectMedia Layer for Perl"
+arch=(i686 x86_64)
+license=(LGPL)
+url="http://sdl.perl.org"
+depends=(perl-alien-sdl perl-tie-simple
+ sdl_{net,ttf,image,mixer,gfx,pango} mesa smpeg)
+#makedepends=(perl-yaml)
+options=('!emptydirs')
+replaces=(sdl_perl)
+conflicts=(sdl_perl)
+provides=("sdl_perl=$pkgver")
+# http://search.cpan.org/dist/SDL/
+_author=FROGGS
+source=(http://search.cpan.org/CPAN/authors/id/${_author:0:1}/${_author:0:2}/$_author/SDL-$pkgver.tar.gz)
+md5sums=('5c682e8a96cd655e959497b034b978ce')
+
+build() {
+ cd "$srcdir/SDL-$pkgver"
+ # 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 "$srcdir/SDL-$pkgver"
+ perl Build test || true
+}
+
+package() {
+ cd "$srcdir/SDL-$pkgver"
+ perl Build install destdir="$pkgdir"
+}