48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'mgba'
|
|
pkgname=mgba
|
|
version=0.10.0
|
|
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 qt5-multimedia-devel qt5-tools-devel"
|
|
short_desc="Game Boy Advance emulator written in C"
|
|
maintainer="fanyx <fanyx@pm.me>"
|
|
license="MPL-2.0"
|
|
homepage="https://www.mgba.io/"
|
|
changelog="https://raw.githubusercontent.com/mgba-emu/mgba/master/CHANGES"
|
|
distfiles="https://github.com/mgba-emu/${pkgname}/archive/${version}.tar.gz"
|
|
checksum=e2d66d9ce7c51b1ef3b339b04e871287bf166f6a1d7125ef112dbf53ab8bbd48
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
|
|
fi
|
|
|
|
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/io.mgba.mGBA.desktop
|
|
vmove usr/share/icons
|
|
}
|
|
}
|