void-packages/srcpkgs/mgba/template
2017-09-17 08:38:07 +00:00

35 lines
927 B
Bash

# Template file for 'mgba'
pkgname=mgba
version=0.6.0
revision=1
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"
short_desc="Game Boy Advance emulator written in C"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MPL-2"
homepage="https://www.mgba.io/"
distfiles="https://github.com/mgba-emu/${pkgname}/archive/${version}.tar.gz"
checksum=d8cf01befd7f452415a9191b058bc21e47e39c7f2c865257cd93c2780b17fe07
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
}
}