2015-10-25 03:50:10 +01:00
|
|
|
# Template file for 'MultiMC'
|
|
|
|
pkgname=MultiMC
|
2017-06-06 02:16:19 +02:00
|
|
|
version=0.5.1
|
2015-10-25 03:50:10 +01:00
|
|
|
revision=1
|
2017-06-06 02:16:19 +02:00
|
|
|
_commithashmmc="aafac3934b9887ced77c9f5b3d6be988af06dbf0"
|
2017-01-30 01:29:03 +01:00
|
|
|
_commithashnbt="4b305bbd2ac0e7a26987baf7949a484a87b474d4"
|
2015-10-25 03:50:10 +01:00
|
|
|
build_style=cmake
|
2016-11-08 12:08:01 +01:00
|
|
|
hostmakedepends="openjdk xxd git-all"
|
2016-04-02 09:37:33 +02:00
|
|
|
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"
|
2017-06-06 02:16:19 +02:00
|
|
|
checksum="026f57bf30de7c054cfad607940b7c2049a53b73315b026e74b0e2973697566d 844b2351461ebedde839bdd754e3e712c7ebd214d92cd0eb34b13a2ee7f16f61"
|
2016-04-02 09:37:33 +02:00
|
|
|
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
|
2017-01-30 01:29:03 +01:00
|
|
|
tar zxvf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_commithashnbt}.tar.gz -C ${wrksrc}/libraries/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
|
2017-01-30 01:29:03 +01:00
|
|
|
vinstall build/libMultiMC_gui.so 755 /usr/lib
|
|
|
|
vinstall build/libMultiMC_rainbow.so 755 /usr/lib
|
2016-04-02 09:37:33 +02:00
|
|
|
vinstall build/libMultiMC_logic.so 755 /usr/lib
|
2017-01-30 01:29:03 +01:00
|
|
|
vinstall build/libMultiMC_nbt++.so 755 /usr/lib
|
2015-10-25 03:50:10 +01:00
|
|
|
vbin ${FILESDIR}/MultiMC.sh MultiMC
|
|
|
|
}
|