community/mgba to 0.5.2-4

This commit is contained in:
Kevin Mihelich 2017-07-18 23:57:58 +00:00
parent a5d9cf1835
commit 8c905eca4d
2 changed files with 20 additions and 3 deletions

View file

@ -10,17 +10,22 @@
pkgbase=mgba
pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
pkgver=0.5.2
pkgrel=3
pkgrel=4
arch=('i686' 'x86_64')
url='http://mgba.io'
license=('custom:MPL2')
makedepends=('cmake' 'qt5-multimedia' 'sdl2' 'zlib' 'libpng' 'libzip' 'libedit'
'ffmpeg' 'imagemagick' 'desktop-file-utils' 'qt5-tools')
source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz)
md5sums=('c3d20052503dca08e58030ac4e3f0408')
source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz
mgba-gcc7.patch)
md5sums=('c3d20052503dca08e58030ac4e3f0408'
'ea583f6af8cdbfed8f83f16311b9c788')
prepare() {
[[ ! -d build ]] && mkdir build || rm -rf build
cd $pkgbase-$pkgver
patch -p1 -i ../mgba-gcc7.patch # Fix build with GCC7
}
build() {

View file

@ -0,0 +1,12 @@
diff --git a/src/platform/qt/GameController.h b/src/platform/qt/GameController.h
index 79b18d3bf..7b8d6908b 100644
--- a/src/platform/qt/GameController.h
+++ b/src/platform/qt/GameController.h
@@ -14,6 +14,7 @@
#include <QTimer>
#include <memory>
+#include <functional>
#include <mgba/core/core.h>
#include <mgba/core/thread.h>