summaryrefslogtreecommitdiff
path: root/extra/perl-alien-sdl/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-12 03:39:22 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-12 03:39:22 +0000
commit4117cddc8a79bfdd61c7c5708b957be92775d67b (patch)
treec1aed4d9a50011336c24925d80a590f3ce29bf41 /extra/perl-alien-sdl/PKGBUILD
parent5a5e68340439f8c9b81e85410fcbd5135732161c (diff)
Thu Jun 12 03:35:06 UTC 2014
Diffstat (limited to 'extra/perl-alien-sdl/PKGBUILD')
-rw-r--r--extra/perl-alien-sdl/PKGBUILD28
1 files changed, 19 insertions, 9 deletions
diff --git a/extra/perl-alien-sdl/PKGBUILD b/extra/perl-alien-sdl/PKGBUILD
index 712653e42..1baead82a 100644
--- a/extra/perl-alien-sdl/PKGBUILD
+++ b/extra/perl-alien-sdl/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 184164 2013-05-03 01:57:18Z heftig $
+# $Id: PKGBUILD 215045 2014-06-11 22:00:07Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
@@ -8,25 +8,35 @@
pkgname=perl-alien-sdl
_realname=Alien-SDL
-pkgver=1.440
+pkgver=1.444
pkgrel=1
pkgdesc="Building, finding and using SDL binaries"
arch=(i686 x86_64)
license=(PerlArtistic GPL)
url="http://search.cpan.org/dist/Alien-SDL/"
depends=(sdl=1.2.15 perl-file-sharedir perl-capture-tiny)
-makedepends=(perl-file-which perl-text-patch)
+makedepends=(perl-file-which perl-text-patch perl-archive-extract perl-archive-zip perl-module-build)
options=(!emptydirs)
_author=FROGGS
source=(http://search.cpan.org/CPAN/authors/id/${_author::1}/${_author::2}/$_author/$_realname-$pkgver.tar.gz)
-md5sums=('ad665d058d186e673114024ba10dfa09')
+md5sums=('e34b27aa2bdc3a29ce617965d80abaf9')
-package() {
- cd "$srcdir/$_realname-$pkgver"
+prepare() {
+ cd $_realname-$pkgver
- # install module in vendor directories
- perl Build.PL installdirs=vendor destdir="$pkgdir" --with-sdl-config
+ # Workaround bug with --with-sdl-config
+ sed -i '/^GetOptions/d' Build.PL
+}
+
+build() {
+ cd $_realname-$pkgver
+ # install module in vendor directories
+ perl Build.PL --with-sdl-config
perl Build
- perl Build install
+}
+
+package() {
+ cd $_realname-$pkgver
+ perl Build install installdirs=vendor destdir="$pkgdir"
}