summaryrefslogtreecommitdiff
path: root/extra/perl-sdl
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-29 23:10:39 +0000
committerroot <root@rshg047.dnsready.net>2011-06-29 23:10:39 +0000
commit5e8a6a470237711ad18f12dde87deea6f2b8b0e0 (patch)
tree438c05155823f16b71f4277fef949610bf6fe826 /extra/perl-sdl
parent108636e69eaeef67f4e7263c7f26105e25979e89 (diff)
Wed Jun 29 23:10:38 UTC 2011
Diffstat (limited to 'extra/perl-sdl')
-rw-r--r--extra/perl-sdl/PKGBUILD23
1 files changed, 16 insertions, 7 deletions
diff --git a/extra/perl-sdl/PKGBUILD b/extra/perl-sdl/PKGBUILD
index 68d52a69d..29483fdc1 100644
--- a/extra/perl-sdl/PKGBUILD
+++ b/extra/perl-sdl/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 112695 2011-03-06 00:40:04Z heftig $
+# $Id: PKGBUILD 127524 2011-06-15 21:01:17Z remy $
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
pkgname=perl-sdl
pkgver=2.531
-pkgrel=1
+pkgrel=3
pkgdesc="Simple DirectMedia Layer for Perl"
arch=(i686 x86_64)
license=(LGPL)
@@ -20,12 +20,21 @@ provides=("sdl_perl=$pkgver")
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GARU/SDL-$pkgver.tar.gz)
md5sums=('ed39c87ae685d3a933705a2ea82a9e18')
-package() {
+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 destdir="$pkgdir"
-
+ perl Build.PL installdirs=vendor
perl Build
- perl Build install
+}
+
+check() {
+ cd "$srcdir/SDL-$pkgver"
+ perl Build test || true
+}
+
+package() {
+ cd "$srcdir/SDL-$pkgver"
+ perl Build install destdir="$pkgdir"
}