[arch-commits] Commit in perl-alien-sdl/trunk (PKGBUILD)

Jan Steffens heftig at nymeria.archlinux.org
Wed Jun 11 21:48:40 UTC 2014


    Date: Wednesday, June 11, 2014 @ 23:48:40
  Author: heftig
Revision: 215042

1.444

Modified:
  perl-alien-sdl/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-06-11 21:18:24 UTC (rev 215041)
+++ PKGBUILD	2014-06-11 21:48:40 UTC (rev 215042)
@@ -8,7 +8,7 @@
 
 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)
@@ -15,18 +15,28 @@
 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
 
+  # Workaround bug with --with-sdl-config
+  sed -i '/^GetOptions/d' Build.PL
+}
+
+build() {
+  cd $_realname-$pkgver
+
   # install module in vendor directories
-  perl Build.PL installdirs=vendor destdir="$pkgdir" --with-sdl-config
-
+  perl Build.PL --with-sdl-config
   perl Build
-  perl Build install
 }
+
+package() {
+  cd $_realname-$pkgver
+  perl Build install installdirs=vendor destdir="$pkgdir"
+}




More information about the arch-commits mailing list