mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
New package: MultiMC-0.4.7
This commit is contained in:
parent
fb0c6567a6
commit
3a967c25cb
3 changed files with 44 additions and 0 deletions
2
srcpkgs/MultiMC/files/MultiMC.sh
Normal file
2
srcpkgs/MultiMC/files/MultiMC.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#/bin/sh
|
||||||
|
/usr/share/multimc/MultiMC -d ~/.multimc
|
15
srcpkgs/MultiMC/patches/10-translation-dir.patch
Normal file
15
srcpkgs/MultiMC/patches/10-translation-dir.patch
Normal 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
27
srcpkgs/MultiMC/template
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue