summaryrefslogtreecommitdiff
path: root/repo/polymc
diff options
context:
space:
mode:
Diffstat (limited to 'repo/polymc')
-rw-r--r--repo/polymc/polymc.xibuild22
1 files changed, 22 insertions, 0 deletions
diff --git a/repo/polymc/polymc.xibuild b/repo/polymc/polymc.xibuild
new file mode 100644
index 0000000..8d0b612
--- /dev/null
+++ b/repo/polymc/polymc.xibuild
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+NAME="polymc"
+DESC="Custom launcher for Minecraft"
+
+MAKEDEPS="cmake qt5-qtbase qt5-qttools adoptopenjdk11"
+
+PKG_VER=1.3.1
+SOURCE="https://github.com/PolyMC/PolyMC/releases/download/${PKG_VER}/PolyMC-${PKG_VER}.tar.gz"
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}