community/mgba fix

This commit is contained in:
Kevin Mihelich 2016-09-21 19:55:35 +00:00
parent 5bba80fc8f
commit 1f4f150925

View file

@ -5,7 +5,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable LTO
# - build for GLES on !aarch64
# - build for GLES, disable SDL on !aarch64
pkgbase=mgba
pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
@ -25,7 +25,7 @@ prepare() {
build() {
cd build
[[ $CARCH != "aarch64" ]] && CONFIG="-DBUILD_GL=OFF -DBUILD_GLES2=ON"
[[ $CARCH != "aarch64" ]] && CONFIG="-DBUILD_GL=OFF -DBUILD_GLES2=ON -DBUILD_SDL=OFF"
cmake "$srcdir"/mgba-$pkgver -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib -DBUILD_LTO=OFF $CONFIG
make