From 26819e36735418eadef62cc5f3e1bbd70d8cc86d Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Mon, 24 Jul 2017 03:02:25 +0000
Subject: [PATCH] community/mgba to 0.6.0-1

---
 community/mgba/PKGBUILD        | 13 ++++---------
 community/mgba/mgba-gcc7.patch | 12 ------------
 2 files changed, 4 insertions(+), 21 deletions(-)
 delete mode 100644 community/mgba/mgba-gcc7.patch

diff --git a/community/mgba/PKGBUILD b/community/mgba/PKGBUILD
index 2410a955b..23460c871 100644
--- a/community/mgba/PKGBUILD
+++ b/community/mgba/PKGBUILD
@@ -9,23 +9,18 @@
 
 pkgbase=mgba
 pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
-pkgver=0.5.2
-pkgrel=4
+pkgver=0.6.0
+pkgrel=1
 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
-        mgba-gcc7.patch)
-md5sums=('c3d20052503dca08e58030ac4e3f0408'
-         'ea583f6af8cdbfed8f83f16311b9c788')
+source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz)
+md5sums=('cdad6be9a3a01afc5d2e9b53f0321a68')
 
 prepare() {
   [[ ! -d build ]] && mkdir build || rm -rf build
-
-  cd $pkgbase-$pkgver
-  patch -p1 -i ../mgba-gcc7.patch # Fix build with GCC7
 }
 
 build() {
diff --git a/community/mgba/mgba-gcc7.patch b/community/mgba/mgba-gcc7.patch
deleted file mode 100644
index d1e1795ee..000000000
--- a/community/mgba/mgba-gcc7.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-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>