From 3a967c25cb26473c1d8177ef45e9bc5e910fd420 Mon Sep 17 00:00:00 2001 From: Spencer Hill Date: Sat, 24 Oct 2015 22:50:10 -0400 Subject: [PATCH] New package: MultiMC-0.4.7 --- srcpkgs/MultiMC/files/MultiMC.sh | 2 ++ .../MultiMC/patches/10-translation-dir.patch | 15 +++++++++++ srcpkgs/MultiMC/template | 27 +++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 srcpkgs/MultiMC/files/MultiMC.sh create mode 100644 srcpkgs/MultiMC/patches/10-translation-dir.patch create mode 100644 srcpkgs/MultiMC/template diff --git a/srcpkgs/MultiMC/files/MultiMC.sh b/srcpkgs/MultiMC/files/MultiMC.sh new file mode 100644 index 00000000000..5161e6506bb --- /dev/null +++ b/srcpkgs/MultiMC/files/MultiMC.sh @@ -0,0 +1,2 @@ +#/bin/sh +/usr/share/multimc/MultiMC -d ~/.multimc diff --git a/srcpkgs/MultiMC/patches/10-translation-dir.patch b/srcpkgs/MultiMC/patches/10-translation-dir.patch new file mode 100644 index 00000000000..fa312a10bf7 --- /dev/null +++ b/srcpkgs/MultiMC/patches/10-translation-dir.patch @@ -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) + diff --git a/srcpkgs/MultiMC/template b/srcpkgs/MultiMC/template new file mode 100644 index 00000000000..bf59563f428 --- /dev/null +++ b/srcpkgs/MultiMC/template @@ -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 " +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 +}