Browse Source

✨feat: new template for PrismLauncher-Cracked

Naz 2 weeks ago
parent
commit
2c935ae073

+ 1 - 1
.github/workflows/build-packages.yml

@@ -14,7 +14,7 @@ env:
   ARCH: x86_64
   HOST: x86_64
   PLATFORM: linux/amd64
-  PACKAGES: "brave,ferdium,librewolf,vscodium,obsidian,onlyoffice,freetube,tutanota-desktop,drawio-desktop,sklauncher,cinny-desktop,pika-backup,zen-browser"
+  PACKAGES: "brave,ferdium,librewolf,vscodium,obsidian,onlyoffice,freetube,tutanota-desktop,drawio-desktop,sklauncher,cinny-desktop,pika-backup,zen-browser,PrismLauncher-Cracked"
 
 jobs:
   build-packages:

+ 1 - 1
README.md

@@ -15,5 +15,5 @@ Once you've created file above, proceed with installing any packages you want us
 
 ```bash
 doas xbps-install -Su
-doas xbps-install brave librewolf vscodium ferdium obsidian onlyoffice freetube tutanota-desktop drawio-desktop sklauncher cinny-desktop
+doas xbps-install brave librewolf vscodium ferdium obsidian onlyoffice freetube tutanota-desktop drawio-desktop sklauncher cinny-desktop PrismLauncher-Cracked
 ```

+ 17 - 0
srcpkgs/PrismLauncher-Cracked/files/README.voidlinux

@@ -0,0 +1,17 @@
+Void-specific instructions:
+============================
+
+You may not have the correct version of java installed for running specific
+versions of Minecraft. For Minecraft version 1.17 and up install openjdk17-jre
+and for older ones openjdk8-jre.
+
+If you get an error message that includes "org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes",
+you may need to install xrandr.
+
+Currently LWJGL 3.3.1 on musl does not work due to weird behavior in how
+it's linked against glibc, which causes a crash when launching some versions
+of the game; in order to play these versions:
+
+1. Open your instance's settings by right clicking it and selecting "Edit".
+2. Go to the "Versions" tab and select LWJGL in the list.
+3. Click on "Set version" on the right side of the screen and choose 3.2.2.

+ 34 - 0
srcpkgs/PrismLauncher-Cracked/template

@@ -0,0 +1,34 @@
+# Template file for 'PrismLauncher-Cracked'
+pkgname=PrismLauncher-Cracked
+version=9.4
+revision=1
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void"
+hostmakedepends="extra-cmake-modules openjdk17 pkg-config qt6-tools qt6-base scdoc"
+makedepends="qt6-base-devel qt6-qt5compat-devel zlib-devel quazip-qt6-devel qt6-networkauth-devel"
+depends="virtual?java-runtime qt6-svg qt6-imageformats qt6-plugin-tls-openssl"
+short_desc="Custom launcher for Minecraft"
+maintainer="Naz <ndpm13@ch-naeseem.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Diegiwg/PrismLauncher-Cracked"
+distfiles="https://github.com/Diegiwg/PrismLauncher-Cracked/releases/download/${version}/PrismLauncher-${version}.tar.gz"
+checksum=c49d5787882116f1f4a86eb55da888bd84d96efbd0647413064aba3cee9b9515
+
+if [ -z "$XBPS_CHECK_PKGS" ]; then
+	configure_args+=" -DBUILD_TESTING=0"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+	# XXX: this could be fixed by switching to clang, but it seems to produce
+	# non-PIE executables despite -fPIE being in the C(XX)FLAGS
+	# There's also some effort needed to get it working on cross
+	armv*) broken="https://github.com/PrismLauncher/PrismLauncher/issues/128" ;;
+esac
+
+pre_configure() {
+	. /etc/profile.d/jdk.sh
+}
+
+post_install() {
+	vdoc ${FILESDIR}/README.voidlinux
+}

+ 2 - 0
srcpkgs/PrismLauncher-Cracked/update

@@ -0,0 +1,2 @@
+site=https://github.com/PrismLauncher/PrismLauncher/tags
+pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'