mgba: unbreak cross compilation (don't build -qt subpkg).

This commit is contained in:
Juan RP 2016-09-22 06:52:54 +02:00
parent 12aa6d3358
commit c3446db991

View file

@ -6,7 +6,7 @@ build_style=cmake
hostmakedepends="pkg-config"
makedepends="libepoxy-devel ffmpeg-devel SDL2-devel MesaLib-devel zlib-devel
libpng-devel libzip-devel libedit-devel libmagick-devel libzip-devel
minizip-devel qt5-multimedia-devel"
minizip-devel"
short_desc="Game Boy Advance emulator written in C"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MPL-2"
@ -14,6 +14,12 @@ homepage="https://ww.mgba.io/"
distfiles="https://github.com/mgba-emu/${pkgname}/archive/${version}.tar.gz"
checksum=0efcd1e4f8c8d34d0384919ea19fa625fa2585d35d102c00b31930196c1f49bc
subpackages="libmgba"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt5-multimedia-devel"
subpackages+=" mgba-qt"
fi
libmgba_package() {
short_desc+=" - shared library"
pkg_install() {