36 lines
1.5 KiB
Bash
36 lines
1.5 KiB
Bash
# Template file for 'MultiMC'
|
|
pkgname=MultiMC
|
|
version=0.5.0
|
|
revision=1
|
|
_commithashmmc="b2dbaaa9e291ac36dc4aeeeed1357fb7d5c6dbc9"
|
|
_commithashnbt="4b305bbd2ac0e7a26987baf7949a484a87b474d4"
|
|
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="17de8bbf97db22c00097ccca478b356e30aa5c0caa07bf677bfbb1846fda34f4 844b2351461ebedde839bdd754e3e712c7ebd214d92cd0eb34b13a2ee7f16f61"
|
|
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}/libraries/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/libMultiMC_gui.so 755 /usr/lib
|
|
vinstall build/libMultiMC_rainbow.so 755 /usr/lib
|
|
vinstall build/libMultiMC_logic.so 755 /usr/lib
|
|
vinstall build/libMultiMC_nbt++.so 755 /usr/lib
|
|
vbin ${FILESDIR}/MultiMC.sh MultiMC
|
|
}
|