# Template file for 'EmulationStation'
pkgname=EmulationStation
version=2.9.4
revision=1
_pugixml_version=1.10
create_wrksrc=yes
build_style=cmake
configure_args="-DOpenGL_GL_PREFERENCE=GLVND -Wno-dev"
hostmakedepends="pkg-config"
makedepends="libcurl-devel MesaLib-devel freetype-devel freeimage-devel
 SDL2-devel eigen boost-devel rapidjson vlc-devel"
short_desc="Flexible emulator front-end"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://github.com/RetroPie/EmulationStation"
distfiles="https://github.com/RetroPie/EmulationStation/archive/v${version}.tar.gz
 https://github.com/zeux/pugixml/releases/download/v1.10/pugixml-${_pugixml_version}.tar.gz"
checksum="79452f6c1e8aaebe98c19708b3587a0a45330bf20b3301d556285d5cd756fa4a
 55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a"

post_extract() {
	mv EmulationStation-$version/* .
	rm -rf external/pugixml
	mv pugixml-${_pugixml_version} external/pugixml
}

post_install() {
	vlicense LICENSE.md
}
