void-packages/srcpkgs/mgba/template
bra1nwave f73d2df928 mgba: update to 0.8.1.
- adopt package
2020-02-21 16:21:40 +01:00

41 lines
1.1 KiB
Bash

# Template file for 'mgba'
pkgname=mgba
version=0.8.1
revision=1
build_style=cmake
hostmakedepends="pkg-config qt5-host-tools qt5-qmake desktop-file-utils"
makedepends="SDL2-devel ffmpeg-devel libedit-devel libepoxy-devel libmagick-devel
libzip-devel minizip-devel qt5-multimedia-devel qt5-tools-devel"
short_desc="Game Boy Advance emulator written in C"
maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="MPL-2.0"
homepage="https://www.mgba.io/"
distfiles="https://github.com/mgba-emu/${pkgname}/archive/${version}.tar.gz"
checksum=df136ea50c9cca380ab93e00fd8d87811e41a49a804c5b0e018babef0c490f13
libmgba_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libmgba-devel_package() {
short_desc+=" - development files"
depends="libmgba>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}
mgba-qt_package() {
short_desc+=" - QT frontend"
depends="desktop-file-utils hicolor-icon-theme"
pkg_install() {
vmove usr/bin/mgba-qt
vmove usr/share/man/man6/mgba-qt.6
vmove usr/share/applications/mgba-qt.desktop
vmove usr/share/icons
}
}