New package: MultiMC-0.4.7

This commit is contained in:
Spencer Hill 2015-10-24 22:50:10 -04:00 committed by Dominik Honnef
parent fb0c6567a6
commit 3a967c25cb
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#/bin/sh
/usr/share/multimc/MultiMC -d ~/.multimc

View File

@ -0,0 +1,15 @@
diff --git a/MultiMC.cpp b/MultiMC.cpp.fixed
index 39cc850..be10ffc 100644
--- application/MultiMC.cpp
+++ application/MultiMC.cpp
@@ -154,8 +154,7 @@ MultiMC::MultiMC(int &argc, char **argv, bool test_mode) : QApplication(argc, ar
// static data paths... mostly just for translations
#ifdef Q_OS_LINUX
- QDir foo(PathCombine(binPath, ".."));
- staticDataPath = foo.absolutePath();
+ staticDataPath = dataPath;
#elif defined(Q_OS_WIN32)
staticDataPath = binPath;
#elif defined(Q_OS_MAC)

27
srcpkgs/MultiMC/template Normal file
View File

@ -0,0 +1,27 @@
# Template file for 'MultiMC'
pkgname=MultiMC
version=0.4.7
revision=1
build_style=cmake
hostmakedepends="openjdk cmake xxd"
makedepends="qt5-devel qt5-x11extras-devel gtk+-devel"
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/${version}.tar.gz"
checksum=961ece29094931b0638244c4a2614623d6df3193ee1a9e156ed36c01325ebae0
wrksrc=${pkgname}5-$version
pre_configure() {
export JAVA_HOME=/usr/lib/jvm/openjdk
export PATH=$PATH:$JAVA_HOME/bin
}
do_install() {
vmkdir usr/bin
vmkdir usr/share/multimc/jars
vcopy build/MultiMC usr/share/multimc
vcopy build/jars/*.jar usr/share/multimc/jars
vbin ${FILESDIR}/MultiMC.sh MultiMC
}