2015-10-25 03:50:10 +01:00
|
|
|
# Template file for 'MultiMC'
|
|
|
|
pkgname=MultiMC
|
2016-04-02 09:37:33 +02:00
|
|
|
version=0.4.11
|
2015-10-25 03:50:10 +01:00
|
|
|
revision=1
|
2016-04-02 09:37:33 +02:00
|
|
|
_commithashmmc="a3cd3d5ff18215a475ed6b5f231f3f02ccd668f7"
|
|
|
|
_commithashnbt="5d0ffb50a526173ce58ae57136bf5d79a7e1920d"
|
2015-10-25 03:50:10 +01:00
|
|
|
build_style=cmake
|
2016-04-02 09:37:33 +02:00
|
|
|
hostmakedepends="openjdk cmake xxd git-all"
|
|
|
|
makedepends="qt5-devel qt5-x11extras-devel qt5-svg-devel gtk+-devel"
|
|
|
|
depends="virtual?java-environment"
|
2015-10-25 03:50:10 +01:00
|
|
|
short_desc="An instanced Minecraft client"
|
|
|
|
maintainer="Spencer H <spencernh77@gmail.com>"
|
|
|
|
license="Apache 2.0"
|
|
|
|
homepage="http://multimc.org"
|
2016-04-02 09:37:33 +02:00
|
|
|
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"
|
2015-10-25 03:50:10 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/openjdk
|
|
|
|
export PATH=$PATH:$JAVA_HOME/bin
|
2016-04-02 09:37:33 +02:00
|
|
|
tar zxvf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_commithashnbt}.tar.gz -C ${wrksrc}/depends/libnbtplusplus --strip-components 1
|
2015-10-25 03:50:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/bin
|
|
|
|
vmkdir usr/share/multimc/jars
|
|
|
|
vcopy build/MultiMC usr/share/multimc
|
|
|
|
vcopy build/jars/*.jar usr/share/multimc/jars
|
2016-04-02 09:37:33 +02:00
|
|
|
vinstall build/librainbow.so 755 /usr/lib
|
|
|
|
vinstall build/libMultiMC_logic.so 755 /usr/lib
|
|
|
|
vinstall build/libnbt++.so 755 /usr/lib
|
2015-10-25 03:50:10 +01:00
|
|
|
vbin ${FILESDIR}/MultiMC.sh MultiMC
|
|
|
|
}
|