diff options
Diffstat (limited to 'extra/perl-alien-sdl/PKGBUILD')
-rw-r--r-- | extra/perl-alien-sdl/PKGBUILD | 28 |
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" } |