Package Details: libmgba-git 0.11.0.r8409.5d92c3ca0-1

Git Clone URL: https://aur.archlinux.org/mgba-git.git (read-only, click to copy)
Package Base: mgba-git
Description: Shared library of mGBA (git build)
Upstream URL: http://mgba.io/
Licenses: MPL-2.0
Conflicts: libmgba
Provides: libmgba
Submitter: Vaporeon
Maintainer: Vaporeon
Last Packager: Vaporeon
Votes: 8
Popularity: 0.000000
First Submitted: 2014-12-15 01:23 (UTC)
Last Updated: 2024-04-19 00:27 (UTC)

Latest Comments

1 2 Next › Last »

HurricanePootis commented on 2024-04-13 02:31 (UTC)

Here are some things currently that needs fixing with this package:

1) Mozilla Public License 2.0 is a known SPDX license, so you need to change it to 'MPL-2.0' 2) MGBA now uses Qt6 for its Qt UI 3) libepoxy is now used for opengl support 4) mgba-qt needs to be force ran on X11 mode or it will not launch with wayland currently

diff --git a/PKGBUILD b/PKGBUILD
index 1714316..2f67cf2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@

 pkgbase=mgba-git
 pkgname=('libmgba-git' 'mgba-sdl-git' 'mgba-qt-git')
-pkgver=0.11.0.r8129.58da73864
+pkgver=0.11.0.r8388.cecb4543c
 pkgrel=1
 arch=('x86_64')
 url='http://mgba.io/'
-license=('custom:MPL2')
-makedepends=('cmake' 'qt5-multimedia' 'sdl2' 'zlib' 'libpng' 'libzip' 'libedit'
-             'lua' 'ffmpeg' 'desktop-file-utils' 'qt5-tools' 'git' 'ninja')
+license=('MPL-2.0')
+makedepends=('cmake' 'qt6-multimedia' 'sdl2' 'zlib' 'libpng' 'libzip' 'libedit'
+             'lua' 'ffmpeg' 'desktop-file-utils' 'qt6-tools' 'git' 'ninja')
 source=("git+https://github.com/mgba-emu/mgba.git")
 sha1sums=('SKIP')

@@ -41,7 +41,7 @@ build() {

 package_libmgba-git() {
   pkgdesc='Shared library of mGBA (git build)'
-  depends=('zlib' 'libpng' 'libzip' 'libedit' 'lua' 'ffmpeg' 'sqlite' )
+  depends=('zlib' 'libpng' 'libzip' 'libedit' 'lua' 'ffmpeg' 'sqlite' 'libepoxy')
   conflicts=('libmgba')
   provides=('libmgba')

@@ -69,7 +69,7 @@ package_mgba-sdl-git() {

 package_mgba-qt-git() {
   pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy. Qt5 UI. (git build)'
-  depends=('libmgba-git' 'qt5-multimedia' 'sdl2')
+  depends=('libmgba-git' 'qt6-multimedia' 'sdl2')
   conflicts=('mgba-qt')
   provides=('mgba-qt')

@@ -77,6 +77,9 @@ package_mgba-qt-git() {
     -P build/cmake_install.cmake

   desktop-file-install mgba/res/mgba-qt.desktop --dir "${pkgdir}"/usr/share/applications/
+  sed -i 's/Exec=/Exec=env QT_QPA_PLATFORM=xcb /g' "${pkgdir}"/usr/share/applications/mgba-qt.desktop
+  sed -i 's/Exec=/Exec=env QT_QPA_PLATFORM=xcb /g' "${pkgdir}"/usr/share/applications/io.mgba.mGBA.desktop
+
   install -Dm644 mgba/res/mgba-256.png "${pkgdir}"/usr/share/pixmaps/io.mgba.mGBA.png

   install -d "${pkgdir}"/usr/share/licenses/${pkgname%-git}

here is the patch file

SteelT commented on 2023-07-04 16:41 (UTC)

Both mgba-qt.desktop and io.mgba.mGBA.desktop ends up getting installed by this package, causing two mGBA desktop entries to appear.

endrift commented on 2023-06-13 23:32 (UTC)

This is missing the new lua optional dependency for 0.10, just like the non-AUR package. Also, you should probably make sure that mgba-qt-git depends on libmgba-git instead of libmgba, as they can have different major version numbers (and usually do).

noabody commented on 2022-12-18 04:44 (UTC) (edited on 2022-12-19 02:05 (UTC) by noabody)

Icon problem, mgba-qt, can be resolved in PKGBUILD like so:

package_mgba-qt-git() {
  pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy. Qt5 UI. (git build)'
  depends=('libmgba' 'qt5-multimedia' 'sdl2')
  conflicts=('mgba-qt')
  provides=('mgba-qt')

  cmake -DCOMPONENT=mgba-qt mgba -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
    -P build/cmake_install.cmake

  cmake -DCOMPONENT=mgba mgba -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
    -P build/cmake_install.cmake

  install -d "$pkgdir"/usr/share/licenses/${pkgname%-git}
  ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/${pkgname%-git}/LICENSE
}

kode54 commented on 2021-09-30 00:53 (UTC)

Hmm, I guess it's fixed, then.

Vaporeon commented on 2021-09-29 14:12 (UTC)

Odd, when I build the current package it has the correct version in the compiled binaries.

kode54 commented on 2021-09-29 02:31 (UTC)

The CMake scripts within the mGBA project somehow do not detect their Git repository properly, and instead somehow pick up the commit hash and repository state of the AUR package above the source directory. They will report $currenthash of the AUR package, and "dirty" because makepkg altered the PKGBUILD to the latest tag and hash from the mGBA repository.

aldelaro5 commented on 2021-09-28 01:14 (UTC) (edited on 2021-09-28 01:15 (UTC) by aldelaro5)

So this aur package is behaving strangely because the version implies it is building the latest from master, but it doesn't seem to do this because I got a pr merged which created the commit 6a05dba8797316c0e75f6e226031bbc658defc76, but what I actually get is a version at commit 96e1ae42729c38f11bc29196323dffe5b6537e20, is this normal? I verified that the binary does not have the changes in the PR.

(you can verify by doing mgba-qt --version, the package will have the correct version, not the binary)

Vaporeon commented on 2020-11-10 13:35 (UTC)

I am aware, it's because of how the cmake thing is written. I have not looked into bypassing it or anything so it's correct. They can be written to work in build environments like this though, for instance the "invader-git" package does not have this issue.

kode54 commented on 2020-11-10 08:46 (UTC)

Thought I'd point out that the project's version.cmake thing which determines the Git revision and inserts it into the binaries, is somehow running the git describes on the AUR package's Git repository and not mGBA's.