From e5d72ef0d31729fa6e2cddbf8c079bde8c872d45 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Fri, 21 Jun 2024 22:49:00 +0000 Subject: [PATCH] extra/mgba to 0.10.3-2 --- extra/mgba/.SRCINFO | 4 +++- extra/mgba/PKGBUILD | 14 +++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/extra/mgba/.SRCINFO b/extra/mgba/.SRCINFO index 8c1d72a0a..259750adb 100644 --- a/extra/mgba/.SRCINFO +++ b/extra/mgba/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = mgba pkgver = 0.10.3 - pkgrel = 1 + pkgrel = 2 url = http://mgba.io arch = x86_64 license = custom:MPL2 @@ -17,7 +17,9 @@ pkgbase = mgba makedepends = lua optdepends = lua: scripting support source = mgba-0.10.3.tar.gz::https://github.com/mgba-emu/mgba/archive/0.10.3.tar.gz + source = https://github.com/mgba-emu/mgba/commit/3a3ebb5d.patch sha256sums = be2cda7de3da8819fdab0c659c5cd4c4b8ca89d9ecddeeeef522db6d31a64143 + sha256sums = 3fb63923547c42165dfd8bd47925cae3c711fec87f767bb5a94361dd022c8bd2 pkgname = libmgba pkgdesc = Shared library of mGBA diff --git a/extra/mgba/PKGBUILD b/extra/mgba/PKGBUILD index 9c8ff183b..f849149da 100644 --- a/extra/mgba/PKGBUILD +++ b/extra/mgba/PKGBUILD @@ -8,17 +8,25 @@ pkgbase=mgba pkgname=('libmgba' 'mgba-sdl' 'mgba-qt') pkgver=0.10.3 -pkgrel=1 +pkgrel=2 arch=('x86_64') url='http://mgba.io' license=('custom:MPL2') makedepends=('cmake' 'qt5-multimedia' 'sdl2' 'zlib' 'libpng' 'libzip' 'libedit' 'ffmpeg' 'desktop-file-utils' 'qt5-tools' 'lua') optdepends=('lua: scripting support') -source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz) -sha256sums=('be2cda7de3da8819fdab0c659c5cd4c4b8ca89d9ecddeeeef522db6d31a64143') +source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz + https://github.com/mgba-emu/mgba/commit/3a3ebb5d.patch) +sha256sums=('be2cda7de3da8819fdab0c659c5cd4c4b8ca89d9ecddeeeef522db6d31a64143' + '3fb63923547c42165dfd8bd47925cae3c711fec87f767bb5a94361dd022c8bd2') + +prepare() { + cd mgba-$pkgver + patch -p1 -i ../3a3ebb5d.patch # Fix build with GCC 14 +} build() { + CFLAGS+=" -Wno-incompatible-pointer-types" \ cmake -B build -S mgba-$pkgver \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \