50 lines
2.2 KiB
Bash
50 lines
2.2 KiB
Bash
# Template file for 'MultiMC'
|
|
pkgname=MultiMC
|
|
version=0.6.12
|
|
revision=3
|
|
wrksrc="${pkgname}5-${version}"
|
|
_commithashnbt="4b305bbd2ac0e7a26987baf7949a484a87b474d4"
|
|
_nbtversion="multimc-0.6.1"
|
|
_quazipversion="multimc-3"
|
|
build_style=cmake
|
|
configure_args='-DMultiMC_BUILD_PLATFORM=Void -DMultiMC_LAYOUT=lin-system'
|
|
hostmakedepends="openjdk8 xxd git qt5-qmake qt5-host-tools tar"
|
|
makedepends="qt5-devel qt5-x11extras-devel qt5-svg-devel gtk+-devel"
|
|
depends="virtual?java-environment qt5-svg"
|
|
short_desc="Instanced Minecraft client"
|
|
maintainer="Henry Naguski <henry@nilsu.org>"
|
|
license="Apache-2.0"
|
|
homepage="http://multimc.org"
|
|
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="c251744b77d93db4ead56940b7b81d30dc5390fb86a1676d3f0364cc4e570185
|
|
36c816e6b1ef8ece52c57dfa9bfda3a23808d0c6c3288b25d8bcf49c7cdb5b07
|
|
ffa60368b1c196859691b637c740f4c60597b2ac47217995082ae8b2a3a9ac18"
|
|
skip_extraction="${_nbtversion}.tar.gz ${_quazipversion}.tar.gz"
|
|
|
|
# Restricted since we don't have permissions to ship builds with the
|
|
# MultiMC name, artwork or the API endpoints.
|
|
restricted=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
|
|
esac
|
|
|
|
pre_configure() {
|
|
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
|
|
export PATH=$PATH:$JAVA_HOME/bin
|
|
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
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir usr/libexec/multimc
|
|
mv "${DESTDIR}/usr/bin/multimc" "${DESTDIR}/usr/libexec/multimc"
|
|
vbin "${FILESDIR}/MultiMC.sh" MultiMC
|
|
vinstall build/libMultiMC_nbt++.so 755 /usr/lib
|
|
vinstall build/libMultiMC_quazip.so 755 /usr/lib
|
|
vinstall application/package/linux/multimc.desktop 644 /usr/share/applications
|
|
vsed -i "${DESTDIR}/usr/share/applications/multimc.desktop" -e 's/Exec=multimc/Exec=MultiMC/'
|
|
vinstall application/resources/multimc/scalable/multimc.svg 644 /usr/share/pixmaps
|
|
}
|