# Template file for 'MultiMC'
pkgname=MultiMC
version=0.4.7
revision=1
build_style=cmake
hostmakedepends="openjdk cmake xxd"
makedepends="qt5-devel qt5-x11extras-devel gtk+-devel"
short_desc="An instanced Minecraft client"
maintainer="Spencer H <spencernh77@gmail.com>"
license="Apache 2.0"
homepage="http://multimc.org"
distfiles="https://github.com/${pkgname}/${pkgname}5/archive/${version}.tar.gz"
checksum=961ece29094931b0638244c4a2614623d6df3193ee1a9e156ed36c01325ebae0
wrksrc=${pkgname}5-$version

pre_configure() {
	export JAVA_HOME=/usr/lib/jvm/openjdk
	export PATH=$PATH:$JAVA_HOME/bin
}

do_install() {
	vmkdir usr/bin
	vmkdir usr/share/multimc/jars
	vcopy build/MultiMC usr/share/multimc
	vcopy build/jars/*.jar usr/share/multimc/jars
	vbin ${FILESDIR}/MultiMC.sh MultiMC
}
