[arch-commits] Commit in vbam/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Sun Feb 21 18:51:17 UTC 2016


    Date: Sunday, February 21, 2016 @ 19:51:17
  Author: alucryd
Revision: 163098

upgpkg: vbam 2.0.0b2-1

Modified:
  vbam/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-21 17:43:52 UTC (rev 163097)
+++ PKGBUILD	2016-02-21 18:51:17 UTC (rev 163098)
@@ -4,19 +4,19 @@
 
 pkgbase=vbam
 pkgname=('vbam-sdl' 'vbam-gtk' 'vbam-wx')
-pkgver=2.0.0b1
-pkgrel=3
+pkgver=2.0.0b2
+pkgrel=1
 pkgdesc='Nintendo GameBoy Advance emulator'
 arch=('i686' 'x86_64')
 url='http://vba-m.com'
 license=('GPL2')
 depends=('sdl' 'sfml' 'zip')
-makedepends=('cmake' 'desktop-file-utils' 'freetype2' 'imagemagick' 'glew'
-             'gtkglextmm' 'libjpeg' 'libpng' 'libsndfile' 'libxrandr'
+makedepends=('cmake' 'desktop-file-utils' 'freetype2' 'git' 'glew' 'gtkglextmm'
+             'imagemagick' 'libjpeg' 'libpng' 'libsndfile' 'libxrandr'
              'openal' 'subversion' 'wxgtk')
 makedepends_i686=('nasm')
 options=('!emptydirs')
-source=("vbam::svn+http://svn.code.sf.net/p/vbam/code/trunk#revision=1465"
+source=('vbam::git+https://github.com/visualboyadvance-m/visualboyadvance-m.git#tag=VBA-M_Beta_2'
         'cxx11-fixes.patch')
 sha256sums=('SKIP'
             '610d770bfcea8da990cddc33c6360b572bc20683b216ab1e6f23424e9d494417')
@@ -23,7 +23,12 @@
 
 prepare() {
   cd vbam
+
   patch -Np1 -i ../cxx11-fixes.patch
+
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
   mkdir build
 }
 
@@ -45,6 +50,7 @@
   fi
 
   CXXFLAGS+=' -std=c++11 -fpermissive'
+
   cmake .. ${_cmakeargs}
   make
 }
@@ -72,7 +78,7 @@
 }
 
 package_vbam-wx() {
-depends+=('wxgtk')
+depends+=('desktop-file-utils' 'wxgtk')
 conflicts=('vbam-gtk')
 install='vbam-wx.install'
 
@@ -79,6 +85,7 @@
   cd vbam/build
 
   make DESTDIR="${pkgdir}" install
+  install -m 755 visualboyadvance-m "${pkgdir}"/usr/bin/
   rm -rf "${pkgdir}"/{etc,usr/{bin/vbam,share/man/man1/vbam.1}}
   find "${pkgdir}" -type f -regex .*gvbam.* -exec rm {} +
 }



More information about the arch-commits mailing list