void-packages/srcpkgs/mgba/template
2016-01-10 11:34:37 +01:00

35 lines
953 B
Bash

# Template file for 'mgba'
pkgname=mgba
version=0.3.2
revision=1
build_style=cmake
# USE_FFMPEG needs libavresample
configure_args="-DUSE_FFMPEG=0"
hostmakedepends="cmake pkg-config"
makedepends="SDL2-devel MesaLib-devel zlib-devel libpng-devel libzip-devel libedit-devel libmagick-devel libzip-devel"
short_desc="Game Boy Advance emulator written in C"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MPL-2"
homepage="https://ww.mgba.io/"
distfiles="https://github.com/mgba-emu/${pkgname}/archive/${version}.tar.gz"
checksum=119fae887df51b28adc807ffe264dfc0f4d872fdd75f60eb2855bd2662fd0b64
subpackages="libmgba"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt5-multimedia-devel"
subpackages+=" mgba-qt"
fi
libmgba_package() {
short_desc+=" - shared library"
pkg_install() {
vmove usr/lib/libmgba.so*
}
}
mgba-qt_package() {
short_desc+=" - QT frontend"
pkg_install() {
vmove usr/bin/mgba-qt
vmove usr/share/man/man6/mgba-qt.6
}
}