2015-10-25 03:50:10 +01:00
|
|
|
# Template file for 'MultiMC'
|
|
|
|
pkgname=MultiMC
|
2018-01-17 06:58:50 +01:00
|
|
|
version=0.6.0
|
|
|
|
revision=2
|
2017-01-30 01:29:03 +01:00
|
|
|
_commithashnbt="4b305bbd2ac0e7a26987baf7949a484a87b474d4"
|
2018-01-17 06:58:50 +01:00
|
|
|
_nbtversion="multimc-0.5.0"
|
|
|
|
_quazipversion="multimc-2"
|
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"
|
2018-01-17 06:58:50 +01:00
|
|
|
distfiles="https://github.com/${pkgname}/${pkgname}5/archive/${version}.tar.gz
|
|
|
|
https://github.com/${pkgname}/libnbtplusplus/archive/${_nbtversion}.tar.gz
|
|
|
|
https://github.com/${pkgname}/quazip/archive/${_quazipversion}.tar.gz"
|
|
|
|
checksum="ac458be99250d2a369ee805bf9560e396d0e0f16a95cc84c36eb0ef1e94a6374
|
|
|
|
bcefbdd905f10a04605cf9e8f768d0f60c972e9e219c800512a5fd9c5f7a8498
|
|
|
|
25e1b74f0edef5e09647f7b5344c08fad4eaebbc386b1f288b59286ecdfe07fa"
|
|
|
|
wrksrc=${pkgname}5-${version}
|
|
|
|
skip_extraction="${_nbtversion}.tar.gz ${_quazipversion}.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
|
2018-01-17 06:58:50 +01:00
|
|
|
tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_nbtversion}.tar.gz" -C "${wrksrc}/libraries/libnbtplusplus" --strip-components 1
|
|
|
|
tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_quazipversion}.tar.gz" -C "${wrksrc}/libraries/quazip" --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
|
2018-01-17 06:58:50 +01:00
|
|
|
vinstall build/libMultiMC_unpack200.so 755 /usr/lib
|
|
|
|
vinstall build/libMultiMC_quazip.so 755 /usr/lib
|
|
|
|
vinstall build/libMultiMC_iconfix.so 755 /usr/lib
|
2015-10-25 03:50:10 +01:00
|
|
|
vbin ${FILESDIR}/MultiMC.sh MultiMC
|
|
|
|
}
|