aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mgba
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-08-07 12:15:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-08-07 12:15:19 +0000
commit85b97ab485c6f770383a1829e8a0468de8c8f696 (patch)
tree3a7f57cc5bf818732fbd43585a58752c04f1905b /testing/mgba
parent3c1cbed9cb1c210942ed426b5ad23eef24676969 (diff)
downloadaports-85b97ab485c6f770383a1829e8a0468de8c8f696.tar.gz
aports-85b97ab485c6f770383a1829e8a0468de8c8f696.tar.bz2
aports-85b97ab485c6f770383a1829e8a0468de8c8f696.tar.xz
testing/mgba: disable on s390x and fix whitespace damage
tests fails on s390x so we disable
Diffstat (limited to 'testing/mgba')
-rw-r--r--testing/mgba/APKBUILD18
1 files changed, 9 insertions, 9 deletions
diff --git a/testing/mgba/APKBUILD b/testing/mgba/APKBUILD
index 8a72d1527e..2b2d06fc17 100644
--- a/testing/mgba/APKBUILD
+++ b/testing/mgba/APKBUILD
@@ -5,7 +5,7 @@ pkgver=0.6.3
pkgrel=1
pkgdesc="Game Boy Advance Emulator"
url="https://github.com/mgba-emu/mgba"
-arch="all"
+arch="all !s390x"
license="MPL-2.0"
makedepends="cmake qt5-qtmultimedia-dev qt5-qtbase-dev qt5-qttools-dev
sdl-dev libzip-dev zlib-dev libpng-dev ffmpeg-dev imagemagick-dev
@@ -22,10 +22,10 @@ builddir="$srcdir/mgba-$pkgver"
build() {
cd "$builddir"
-
+
# declaration mismatch in include/mgba/core/thread.h
export CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
-
+
mkdir build
cd build
cmake \
@@ -41,7 +41,7 @@ build() {
check() {
cd "$builddir/build"
./mgba-suite
-
+
# test python bindings by executing an open source ROM
# for DMG-01 (OG gameboy) and exporting a png screenshot
PYTHONPATH="$PWD/$(echo python/lib.linux-*-3.*)" \
@@ -53,11 +53,11 @@ check() {
package() {
cd "$builddir/build"
make install DESTDIR="$pkgdir"
-
+
# delete test files
rm "$pkgdir/usr/bin/mgba-fuzz"
rm "$pkgdir/usr/bin/tbl-fuzz"
-
+
# delete config cruft
rm "$pkgdir/usr/include/mgba/flags.h"
rmdir -p "$pkgdir/usr/include/mgba" || :
@@ -66,19 +66,19 @@ package() {
_py() {
pkgdesc="Python3 bindings for the mGBA emulator"
depends="py3-cffi py3-cached-property"
-
+
cd "$builddir/build/python"
local bdir=$(echo lib.linux-*-3.*)
local pyver=${bdir##*-}
local dest="$subpkgdir/usr/lib/python$pyver/site-packages"
-
+
mkdir -p "$dest"
mv $bdir/mgba/ "$dest"
}
_qt() {
pkgdesc="Qt5 frontend for the mGBA emulator"
-
+
local bin="$subpkgdir/usr/bin"
local apps="$subpkgdir/usr/share/applications"