community/mgba: fix

This commit is contained in:
Kevin Mihelich 2017-08-14 23:52:06 +00:00
parent 307f5dfe42
commit 78cd73f750

View file

@ -5,7 +5,6 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable LTO
# - build for GLES, disable SDL on !aarch64
pkgbase=mgba
pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
@ -25,9 +24,8 @@ prepare() {
build() {
cd build
[[ $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
-DCMAKE_INSTALL_LIBDIR=lib -DBUILD_LTO=OFF
make
}