void-packages/srcpkgs/mgba/template

34 lines
916 B
Bash
Raw Normal View History

2016-01-10 11:34:37 +01:00
# Template file for 'mgba'
pkgname=mgba
2016-02-07 07:00:06 +01:00
version=0.4.0
revision=1
2016-01-10 11:34:37 +01:00
build_style=cmake
hostmakedepends="cmake pkg-config"
2016-02-07 07:00:06 +01:00
makedepends="libepoxy-devel ffmpeg-devel SDL2-devel MesaLib-devel zlib-devel libpng-devel libzip-devel libedit-devel libmagick-devel libzip-devel"
2016-01-10 11:34:37 +01:00
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"
2016-02-07 07:00:06 +01:00
checksum=bec8cb17b366ed9a61ea41efe830716215dc8fa08706fc8cdebadfff723c0448
2016-01-10 11:34:37 +01:00
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
}
}