summaryrefslogtreecommitdiff
path: root/testing/perl-sdl
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-16 22:59:30 +0000
committerroot <root@rshg047.dnsready.net>2011-06-16 22:59:30 +0000
commit1fcb176285908c33aca3b0f5cb703ec098e5440c (patch)
tree45be5519988f1ec96c9bc1a55e2ffcf5f5c62d26 /testing/perl-sdl
parentebe74a263db3899367e12d936f908cdfdee7ec15 (diff)
Thu Jun 16 22:59:30 UTC 2011
Diffstat (limited to 'testing/perl-sdl')
-rw-r--r--testing/perl-sdl/PKGBUILD23
1 files changed, 16 insertions, 7 deletions
diff --git a/testing/perl-sdl/PKGBUILD b/testing/perl-sdl/PKGBUILD
index 27ef6a6c2..29483fdc1 100644
--- a/testing/perl-sdl/PKGBUILD
+++ b/testing/perl-sdl/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 124823 2011-05-24 15:53:48Z 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=2
+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"
}