summaryrefslogtreecommitdiff
path: root/testing/perl-sdl
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-01 00:41:47 +0000
committerroot <root@rshg054.dnsready.net>2012-09-01 00:41:47 +0000
commite5a77fe6a2fd0e3eb7d877c942959b53fdff2a0c (patch)
treec4e25ae90be49a84f8a9eae41d11ad3f35dad12d /testing/perl-sdl
parent68cdc08aec92abf91448a542e06fabbedbb583bf (diff)
Sat Sep 1 00:41:47 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..682be8a60
--- /dev/null
+++ b/testing/perl-sdl/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 165797 2012-08-30 16:55:08Z heftig $
+# 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=2
+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 sdl_ttf sdl_image sdl_mixer sdl_gfx sdl_pango mesa smpeg)
+makedepends=('perl-module-build>=0.40')
+options=('!emptydirs')
+replaces=(sdl_perl)
+conflicts=(sdl_perl)
+provides=("sdl_perl=$pkgver")
+# http://search.cpan.org/dist/SDL/
+_author=JTPALMER
+source=(http://search.cpan.org/CPAN/authors/id/${_author::1}/${_author::2}/$_author/SDL-$pkgver.tar.gz)
+md5sums=('1a5d7849cbdfde4982b28458e38ab172')
+
+build() {
+ cd 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 SDL-$pkgver
+ perl Build test || true
+}
+
+package() {
+ cd SDL-$pkgver
+ perl Build install destdir="$pkgdir"
+}