[arch-commits] Commit in mgba/trunk (PKGBUILD mgba-gcc7.patch)
Antonio Rojas
arojas at archlinux.org
Sun Jul 16 22:26:52 UTC 2017
Date: Sunday, July 16, 2017 @ 22:26:51
Author: arojas
Revision: 245443
imagemagick 6.9.9.0 rebuild
Added:
mgba/trunk/mgba-gcc7.patch
Modified:
mgba/trunk/PKGBUILD
-----------------+
PKGBUILD | 11 ++++++++---
mgba-gcc7.patch | 12 ++++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-16 20:51:51 UTC (rev 245442)
+++ PKGBUILD 2017-07-16 22:26:51 UTC (rev 245443)
@@ -6,17 +6,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() {
Added: mgba-gcc7.patch
===================================================================
--- mgba-gcc7.patch (rev 0)
+++ mgba-gcc7.patch 2017-07-16 22:26:51 UTC (rev 245443)
@@ -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>
More information about the arch-commits
mailing list