[arch-commits] Commit in mgba/repos (3 files)

Maxime Gauduin alucryd at archlinux.org
Mon Aug 27 09:39:25 UTC 2018


    Date: Monday, August 27, 2018 @ 09:39:24
  Author: alucryd
Revision: 374740

archrelease: copy trunk to community-staging-x86_64

Added:
  mgba/repos/community-staging-x86_64/
  mgba/repos/community-staging-x86_64/PKGBUILD
    (from rev 374739, mgba/trunk/PKGBUILD)
  mgba/repos/community-staging-x86_64/mgba-qt5.11.patch
    (from rev 374739, mgba/trunk/mgba-qt5.11.patch)

-------------------+
 PKGBUILD          |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 mgba-qt5.11.patch |   35 +++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)

Copied: mgba/repos/community-staging-x86_64/PKGBUILD (from rev 374739, mgba/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-27 09:39:24 UTC (rev 374740)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer:  Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Duck Hunt <vaporeon at tfwno.gf>
+
+pkgbase=mgba
+pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
+pkgver=0.6.3
+pkgrel=2
+arch=('x86_64')
+url='http://mgba.io'
+license=('custom:MPL2')
+makedepends=('cmake' 'qt5-multimedia' 'sdl2' 'zlib' 'libpng' 'libzip' 'libedit'
+             'ffmpeg' 'libmagick' 'desktop-file-utils' 'qt5-tools')
+source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz
+        mgba-qt5.11.patch)
+md5sums=('5e46c98c6321941499c44f88b2001d9b'
+         '36e0ba610e1ba0806324d1d6b8f315b7')
+
+prepare() {
+  [[ ! -d build ]] && mkdir build || rm -rf build
+
+  cd mgba-$pkgver
+
+  patch -Np1 -i ../mgba-qt5.11.patch
+}
+
+build() {
+  cd build
+  cmake "$srcdir"/mgba-$pkgver -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib
+  make
+}
+
+package_libmgba() {
+  pkgdesc='Shared library of mGBA'
+  depends=('zlib' 'libpng' 'libzip' 'libedit' 'ffmpeg' 'libmagick')
+
+  cmake -DCOMPONENT=libmgba mgba-$pkgver -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
+    -P build/cmake_install.cmake
+  install -Dm644 mgba-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_mgba-sdl() {
+  pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy'
+  depends=('libmgba' 'sdl2')
+
+  cmake -DCOMPONENT=mgba-sdl mgba-$pkgver -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
+    -P build/cmake_install.cmake
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_mgba-qt() {
+  pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy. Qt5 UI.'
+  depends=('libmgba' 'qt5-multimedia' 'sdl2')
+
+  cmake -DCOMPONENT=mgba-qt mgba-$pkgver -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
+    -P build/cmake_install.cmake
+
+  desktop-file-install mgba-$pkgver/res/mgba-qt.desktop --dir "$pkgdir"/usr/share/applications/
+  install -Dm644 mgba-$pkgver/res/mgba-256.png "$pkgdir"/usr/share/pixmaps/mgba.png
+
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: mgba/repos/community-staging-x86_64/mgba-qt5.11.patch (from rev 374739, mgba/trunk/mgba-qt5.11.patch)
===================================================================
--- community-staging-x86_64/mgba-qt5.11.patch	                        (rev 0)
+++ community-staging-x86_64/mgba-qt5.11.patch	2018-08-27 09:39:24 UTC (rev 374740)
@@ -0,0 +1,35 @@
+From 7f41dd354176b720c8e3310553c6b772278b9dca Mon Sep 17 00:00:00 2001
+From: Vicki Pfau <vi at endrift.com>
+Date: Fri, 25 May 2018 18:04:16 -0700
+Subject: [PATCH] Qt: Fix build with Qt 5.11
+
+---
+ src/platform/qt/LoadSaveState.cpp | 1 +
+ src/platform/qt/Window.h          | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/platform/qt/LoadSaveState.cpp b/src/platform/qt/LoadSaveState.cpp
+index 538254ff6..d9db6a7d3 100644
+--- a/src/platform/qt/LoadSaveState.cpp
++++ b/src/platform/qt/LoadSaveState.cpp
+@@ -10,6 +10,7 @@
+ #include "GamepadButtonEvent.h"
+ #include "VFileDevice.h"
+ 
++#include <QAction>
+ #include <QDateTime>
+ #include <QKeyEvent>
+ #include <QPainter>
+diff --git a/src/platform/qt/Window.h b/src/platform/qt/Window.h
+index baca971ea..2d9d139cc 100644
+--- a/src/platform/qt/Window.h
++++ b/src/platform/qt/Window.h
+@@ -5,6 +5,7 @@
+  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+ #pragma once
+ 
++#include <QAction>
+ #include <QDateTime>
+ #include <QList>
+ #include <QMainWindow>
+



More information about the arch-commits mailing list