void-packages/srcpkgs/MultiMC/template
2016-11-08 12:08:01 +01:00

35 lines
1.4 KiB
Bash

# Template file for 'MultiMC'
pkgname=MultiMC
version=0.4.11
revision=1
_commithashmmc="a3cd3d5ff18215a475ed6b5f231f3f02ccd668f7"
_commithashnbt="5d0ffb50a526173ce58ae57136bf5d79a7e1920d"
build_style=cmake
hostmakedepends="openjdk xxd git-all"
makedepends="qt5-devel qt5-x11extras-devel qt5-svg-devel gtk+-devel"
depends="virtual?java-environment"
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/${_commithashmmc}.tar.gz https://github.com/${pkgname}/libnbtplusplus/archive/${_commithashnbt}.tar.gz"
checksum="3c5d7ecf7d5b9d25304284b76cf15f70c9aae70be824fe351ff28d9a3851801c 893a4e639f300a121237e4cc83c39dd5701e7119ea79216f2e8fd1906dc2f1f4"
wrksrc=${pkgname}5-${_commithashmmc}
skip_extraction="${_commithashnbt}.tar.gz"
pre_configure() {
export JAVA_HOME=/usr/lib/jvm/openjdk
export PATH=$PATH:$JAVA_HOME/bin
tar zxvf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_commithashnbt}.tar.gz -C ${wrksrc}/depends/libnbtplusplus --strip-components 1
}
do_install() {
vmkdir usr/bin
vmkdir usr/share/multimc/jars
vcopy build/MultiMC usr/share/multimc
vcopy build/jars/*.jar usr/share/multimc/jars
vinstall build/librainbow.so 755 /usr/lib
vinstall build/libMultiMC_logic.so 755 /usr/lib
vinstall build/libnbt++.so 755 /usr/lib
vbin ${FILESDIR}/MultiMC.sh MultiMC
}