Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: PolyMC-1.0.5
@ 2022-01-10 12:06 oynqr
  2022-01-10 12:19 ` [PR PATCH] [Updated] " oynqr
                   ` (76 more replies)
  0 siblings, 77 replies; 78+ messages in thread
From: oynqr @ 2022-01-10 12:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1685 bytes --]

There is a new pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.5
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 2149 bytes --]

From 6ac8f286a0ee5daa285091a71ffdeda0bed2ba5f Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.0.5

---
 srcpkgs/PolyMC/template | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..49ab99911106
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,39 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.0.5
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system
+ -DLauncher_APP_BINARY_NAME=polymc"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake tar"
+makedepends="qt5-devel"
+depends="virtual?java-environment"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later,
+ MIT, BSD-3-Clause, BSD-2-Clause"
+homepage="https://polymc.org/"
+distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/${pkgname}/quazip/archive/${_quazipversion}.tar.gz"
+checksum="fbed173a36de945309efe4e3447dd003b8365d55e8cf5f5b6f6a8bfd971ca413
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254"
+skip_extraction="${_nbtversion}.tar.gz ${_quazipversion}.tar.gz"
+
+case "$XBPS_TARGET_MACHINE" in
+        armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+pre_configure() {
+	tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_nbtversion}.tar.gz" \
+		-C "${wrksrc}/libraries/libnbtplusplus" --strip-components 1
+	tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_quazipversion}.tar.gz" \
+		-C "${wrksrc}/libraries/quazip" --strip-components 1
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.0.5
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
@ 2022-01-10 12:19 ` oynqr
  2022-01-21 19:32 ` sug0
                   ` (75 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-01-10 12:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.5
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 2142 bytes --]

From 44d678fdc2f8b969c74f0ab2a7a275d4fcf98039 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.0.5

---
 srcpkgs/PolyMC/template | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..2df9f6af5fcc
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,39 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.0.5
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system
+ -DLauncher_APP_BINARY_NAME=polymc"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake tar"
+makedepends="qt5-devel"
+depends="virtual?java-environment"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later,
+ MIT, BSD-3-Clause, BSD-2-Clause"
+homepage="https://polymc.org/"
+distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/${pkgname}/quazip/archive/${_quazipversion}.tar.gz"
+checksum="fbed173a36de945309efe4e3447dd003b8365d55e8cf5f5b6f6a8bfd971ca413
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254"
+skip_extraction="${_nbtversion}.tar.gz ${_quazipversion}.tar.gz"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+pre_configure() {
+	tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_nbtversion}.tar.gz" \
+		-C "${wrksrc}/libraries/libnbtplusplus" --strip-components 1
+	tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_quazipversion}.tar.gz" \
+		-C "${wrksrc}/libraries/quazip" --strip-components 1
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.5
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
  2022-01-10 12:19 ` [PR PATCH] [Updated] " oynqr
@ 2022-01-21 19:32 ` sug0
  2022-01-22  9:28 ` oynqr
                   ` (74 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: sug0 @ 2022-01-21 19:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

New comment by sug0 on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1018800107

Comment:
@paper42 @ericonr  May I request you review this, please?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.5
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
  2022-01-10 12:19 ` [PR PATCH] [Updated] " oynqr
  2022-01-21 19:32 ` sug0
@ 2022-01-22  9:28 ` oynqr
  2022-01-31 10:27 ` [PR PATCH] [Updated] " oynqr
                   ` (73 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-01-22  9:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

New comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1019127676

Comment:
I suggest waiting for the next release. There are still some references to MultiMC and old API keys in 1.0.5.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.0.5
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (2 preceding siblings ...)
  2022-01-22  9:28 ` oynqr
@ 2022-01-31 10:27 ` oynqr
  2022-01-31 12:13 ` New package: PolyMC-1.0.6 oynqr
                   ` (72 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-01-31 10:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.5
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 2105 bytes --]

From d9e53d1175d3b5afa2da92bb4d12abd1497f69c8 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.0.6

---
 srcpkgs/PolyMC/template | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..7acfe08ce364
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,38 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.0.6
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake tar"
+makedepends="qt5-devel"
+depends="virtual?java-environment"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later,
+ MIT, BSD-3-Clause, BSD-2-Clause"
+homepage="https://polymc.org/"
+distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/${pkgname}/quazip/archive/${_quazipversion}.tar.gz"
+checksum="78c7b24c6895a37f45f563b88cf0ad5cf26dd66264383ed77909e66065df9ea6
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254"
+skip_extraction="${_nbtversion}.tar.gz ${_quazipversion}.tar.gz"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+pre_configure() {
+	tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_nbtversion}.tar.gz" \
+		-C "${wrksrc}/libraries/libnbtplusplus" --strip-components 1
+	tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_quazipversion}.tar.gz" \
+		-C "${wrksrc}/libraries/quazip" --strip-components 1
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (3 preceding siblings ...)
  2022-01-31 10:27 ` [PR PATCH] [Updated] " oynqr
@ 2022-01-31 12:13 ` oynqr
  2022-02-16 16:09 ` Scrumplex
                   ` (71 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-01-31 12:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

New comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1025676563

Comment:
This release still uses translation files hosted by MultiMC, which is an issue since peterix now prohibits anything with a PolyMC user-agent from hitting the MultiMC servers.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (4 preceding siblings ...)
  2022-01-31 12:13 ` New package: PolyMC-1.0.6 oynqr
@ 2022-02-16 16:09 ` Scrumplex
  2022-02-17 15:54 ` [PR PATCH] [Updated] " oynqr
                   ` (70 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: Scrumplex @ 2022-02-16 16:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

New comment by Scrumplex on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1041828204

Comment:
Thanks for packaging this. 

We didn't have enough time to get translations to our own infrastructure as well. 
We don't have an ETA for 1.1.0 yet. It feels *close* but new stuff keep coming in :sweat_smile:.
In the meantime you could backport the following commits:

https://github.com/PolyMC/PolyMC/commit/5284d604ef1c56df6cbc9f70d109a35bb459fae2
https://github.com/PolyMC/PolyMC/commit/8d2e7db178b764838014a457bec81e946e0f937d

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (5 preceding siblings ...)
  2022-02-16 16:09 ` Scrumplex
@ 2022-02-17 15:54 ` oynqr
  2022-02-17 15:55 ` oynqr
                   ` (69 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-17 15:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 6320 bytes --]

From 84e6b243b2b23216a81a327de476c2f051a3e0c2 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.0.6

---
 .../PolyMC/patches/00-fix-translations.patch  | 81 +++++++++++++++++++
 srcpkgs/PolyMC/template                       | 38 +++++++++
 2 files changed, 119 insertions(+)
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-translations.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/patches/00-fix-translations.patch b/srcpkgs/PolyMC/patches/00-fix-translations.patch
new file mode 100644
index 000000000000..55ab84cfc9ef
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-translations.patch
@@ -0,0 +1,81 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b2507a48..b836b766 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -80,6 +80,9 @@ set(Launcher_MSA_CLIENT_ID "17b47edd-c884-4997-926d-9e7f9a6b4647" CACHE STRING "
+ # Bug tracker URL
+ set(Launcher_BUG_TRACKER_URL "https://github.com/PolyMC/PolyMC/issues" CACHE STRING "URL for the bug tracker.")
+ 
++# Translations Platform URL
++set(Launcher_TRANSLATIONS_URL "https://hosted.weblate.org/projects/polymc/polymc/" CACHE STRING "URL for the translations platform.")
++
+ # Discord URL
+ set(Launcher_DISCORD_URL "https://discord.gg/Z52pwxWCHP" CACHE STRING "URL for the Discord guild.")
+ 
+diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in
+index af8845dc..cd062c9b 100644
+--- a/buildconfig/BuildConfig.cpp.in
++++ b/buildconfig/BuildConfig.cpp.in
+@@ -48,6 +48,7 @@ Config::Config()
+     META_URL = "@Launcher_META_URL@";
+ 
+     BUG_TRACKER_URL = "@Launcher_BUG_TRACKER_URL@";
++    TRANSLATIONS_URL = "@Launcher_TRANSLATIONS_URL@";
+     DISCORD_URL = "@Launcher_DISCORD_URL@";
+     SUBREDDIT_URL = "@Launcher_SUBREDDIT_URL@";
+ }
+diff --git a/buildconfig/BuildConfig.h b/buildconfig/BuildConfig.h
+index 009fb2bc..7682ad1e 100644
+--- a/buildconfig/BuildConfig.h
++++ b/buildconfig/BuildConfig.h
+@@ -88,6 +88,7 @@ public:
+     QString META_URL;
+ 
+     QString BUG_TRACKER_URL;
++    QString TRANSLATIONS_URL;
+     QString DISCORD_URL;
+     QString SUBREDDIT_URL;
+ 
+@@ -96,7 +97,7 @@ public:
+     QString AUTH_BASE = "https://authserver.mojang.com/";
+     QString IMGUR_BASE_URL = "https://api.imgur.com/3/";
+     QString FMLLIBS_BASE_URL = "https://files.multimc.org/fmllibs/";
+-    QString TRANSLATIONS_BASE_URL = "https://files.multimc.org/translations/";
++    QString TRANSLATIONS_BASE_URL = "https://meta.polymc.org/translations/";
+ 
+     QString MODPACKSCH_API_BASE_URL = "https://api.modpacks.ch/";
+ 
+diff --git a/launcher/translations/TranslationsModel.cpp b/launcher/translations/TranslationsModel.cpp
+index 2e744007..5f7db4d7 100644
+--- a/launcher/translations/TranslationsModel.cpp
++++ b/launcher/translations/TranslationsModel.cpp
+@@ -576,7 +576,7 @@ void TranslationsModel::downloadIndex()
+     d->m_index_job = new NetJob("Translations Index", APPLICATION->network());
+     MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("translations", "index_v2.json");
+     entry->setStale(true);
+-    d->m_index_task = Net::Download::makeCached(QUrl("https://files.multimc.org/translations/index_v2.json"), entry);
++    d->m_index_task = Net::Download::makeCached(QUrl(BuildConfig.TRANSLATIONS_BASE_URL + "index_v2.json"), entry);
+     d->m_index_job->addNetAction(d->m_index_task);
+     connect(d->m_index_job.get(), &NetJob::failed, this, &TranslationsModel::indexFailed);
+     connect(d->m_index_job.get(), &NetJob::succeeded, this, &TranslationsModel::indexReceived);
+diff --git a/launcher/ui/widgets/LanguageSelectionWidget.cpp b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+index cf70c7b4..fc089f26 100644
+--- a/launcher/ui/widgets/LanguageSelectionWidget.cpp
++++ b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+@@ -5,6 +5,7 @@
+ #include <QHeaderView>
+ #include <QLabel>
+ #include "Application.h"
++#include "BuildConfig.h"
+ #include "translations/TranslationsModel.h"
+ 
+ LanguageSelectionWidget::LanguageSelectionWidget(QWidget *parent) :
+@@ -48,7 +49,7 @@ QString LanguageSelectionWidget::getSelectedLanguageKey() const
+ void LanguageSelectionWidget::retranslate()
+ {
+     QString text = tr("Don't see your language or the quality is poor?<br/><a href=\"%1\">Help us with translations!</a>")
+-        .arg("https://github.com/MultiMC/Launcher/wiki/Translating-MultiMC");
++        .arg(BuildConfig.TRANSLATIONS_URL);
+     helpUsLabel->setText(text);
+ 
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..7acfe08ce364
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,38 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.0.6
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake tar"
+makedepends="qt5-devel"
+depends="virtual?java-environment"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later,
+ MIT, BSD-3-Clause, BSD-2-Clause"
+homepage="https://polymc.org/"
+distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/${pkgname}/quazip/archive/${_quazipversion}.tar.gz"
+checksum="78c7b24c6895a37f45f563b88cf0ad5cf26dd66264383ed77909e66065df9ea6
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254"
+skip_extraction="${_nbtversion}.tar.gz ${_quazipversion}.tar.gz"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+pre_configure() {
+	tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_nbtversion}.tar.gz" \
+		-C "${wrksrc}/libraries/libnbtplusplus" --strip-components 1
+	tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_quazipversion}.tar.gz" \
+		-C "${wrksrc}/libraries/quazip" --strip-components 1
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (6 preceding siblings ...)
  2022-02-17 15:54 ` [PR PATCH] [Updated] " oynqr
@ 2022-02-17 15:55 ` oynqr
  2022-02-18  3:46 ` [PR REVIEW] " ericonr
                   ` (68 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-17 15:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

New comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1043110822

Comment:
Added the patches for the translation URL, this should work pretty good for now.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (7 preceding siblings ...)
  2022-02-17 15:55 ` oynqr
@ 2022-02-18  3:46 ` ericonr
  2022-02-18  3:46 ` ericonr
                   ` (67 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: ericonr @ 2022-02-18  3:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r809652783

Comment:
See how other packages deal with submodules. One example is `wayfire`. It avoids the `tar` dependency. And I should note that this should happen in `post_extract`

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (8 preceding siblings ...)
  2022-02-18  3:46 ` [PR REVIEW] " ericonr
@ 2022-02-18  3:46 ` ericonr
  2022-02-18  9:23 ` [PR PATCH] [Updated] " oynqr
                   ` (66 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: ericonr @ 2022-02-18  3:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r809652223

Comment:
Please expand pkgname into its value in all relevant places.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (9 preceding siblings ...)
  2022-02-18  3:46 ` ericonr
@ 2022-02-18  9:23 ` oynqr
  2022-02-18  9:26 ` [PR REVIEW] " oynqr
                   ` (65 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-18  9:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 6129 bytes --]

From c3bdabfd1d453f1348f77876ef4466905ccfd01f Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.0.6

---
 .../PolyMC/patches/00-fix-translations.patch  | 81 +++++++++++++++++++
 srcpkgs/PolyMC/template                       | 37 +++++++++
 2 files changed, 118 insertions(+)
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-translations.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/patches/00-fix-translations.patch b/srcpkgs/PolyMC/patches/00-fix-translations.patch
new file mode 100644
index 000000000000..55ab84cfc9ef
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-translations.patch
@@ -0,0 +1,81 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b2507a48..b836b766 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -80,6 +80,9 @@ set(Launcher_MSA_CLIENT_ID "17b47edd-c884-4997-926d-9e7f9a6b4647" CACHE STRING "
+ # Bug tracker URL
+ set(Launcher_BUG_TRACKER_URL "https://github.com/PolyMC/PolyMC/issues" CACHE STRING "URL for the bug tracker.")
+ 
++# Translations Platform URL
++set(Launcher_TRANSLATIONS_URL "https://hosted.weblate.org/projects/polymc/polymc/" CACHE STRING "URL for the translations platform.")
++
+ # Discord URL
+ set(Launcher_DISCORD_URL "https://discord.gg/Z52pwxWCHP" CACHE STRING "URL for the Discord guild.")
+ 
+diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in
+index af8845dc..cd062c9b 100644
+--- a/buildconfig/BuildConfig.cpp.in
++++ b/buildconfig/BuildConfig.cpp.in
+@@ -48,6 +48,7 @@ Config::Config()
+     META_URL = "@Launcher_META_URL@";
+ 
+     BUG_TRACKER_URL = "@Launcher_BUG_TRACKER_URL@";
++    TRANSLATIONS_URL = "@Launcher_TRANSLATIONS_URL@";
+     DISCORD_URL = "@Launcher_DISCORD_URL@";
+     SUBREDDIT_URL = "@Launcher_SUBREDDIT_URL@";
+ }
+diff --git a/buildconfig/BuildConfig.h b/buildconfig/BuildConfig.h
+index 009fb2bc..7682ad1e 100644
+--- a/buildconfig/BuildConfig.h
++++ b/buildconfig/BuildConfig.h
+@@ -88,6 +88,7 @@ public:
+     QString META_URL;
+ 
+     QString BUG_TRACKER_URL;
++    QString TRANSLATIONS_URL;
+     QString DISCORD_URL;
+     QString SUBREDDIT_URL;
+ 
+@@ -96,7 +97,7 @@ public:
+     QString AUTH_BASE = "https://authserver.mojang.com/";
+     QString IMGUR_BASE_URL = "https://api.imgur.com/3/";
+     QString FMLLIBS_BASE_URL = "https://files.multimc.org/fmllibs/";
+-    QString TRANSLATIONS_BASE_URL = "https://files.multimc.org/translations/";
++    QString TRANSLATIONS_BASE_URL = "https://meta.polymc.org/translations/";
+ 
+     QString MODPACKSCH_API_BASE_URL = "https://api.modpacks.ch/";
+ 
+diff --git a/launcher/translations/TranslationsModel.cpp b/launcher/translations/TranslationsModel.cpp
+index 2e744007..5f7db4d7 100644
+--- a/launcher/translations/TranslationsModel.cpp
++++ b/launcher/translations/TranslationsModel.cpp
+@@ -576,7 +576,7 @@ void TranslationsModel::downloadIndex()
+     d->m_index_job = new NetJob("Translations Index", APPLICATION->network());
+     MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("translations", "index_v2.json");
+     entry->setStale(true);
+-    d->m_index_task = Net::Download::makeCached(QUrl("https://files.multimc.org/translations/index_v2.json"), entry);
++    d->m_index_task = Net::Download::makeCached(QUrl(BuildConfig.TRANSLATIONS_BASE_URL + "index_v2.json"), entry);
+     d->m_index_job->addNetAction(d->m_index_task);
+     connect(d->m_index_job.get(), &NetJob::failed, this, &TranslationsModel::indexFailed);
+     connect(d->m_index_job.get(), &NetJob::succeeded, this, &TranslationsModel::indexReceived);
+diff --git a/launcher/ui/widgets/LanguageSelectionWidget.cpp b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+index cf70c7b4..fc089f26 100644
+--- a/launcher/ui/widgets/LanguageSelectionWidget.cpp
++++ b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+@@ -5,6 +5,7 @@
+ #include <QHeaderView>
+ #include <QLabel>
+ #include "Application.h"
++#include "BuildConfig.h"
+ #include "translations/TranslationsModel.h"
+ 
+ LanguageSelectionWidget::LanguageSelectionWidget(QWidget *parent) :
+@@ -48,7 +49,7 @@ QString LanguageSelectionWidget::getSelectedLanguageKey() const
+ void LanguageSelectionWidget::retranslate()
+ {
+     QString text = tr("Don't see your language or the quality is poor?<br/><a href=\"%1\">Help us with translations!</a>")
+-        .arg("https://github.com/MultiMC/Launcher/wiki/Translating-MultiMC");
++        .arg(BuildConfig.TRANSLATIONS_URL);
+     helpUsLabel->setText(text);
+ 
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..68571b1bde28
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,37 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.0.6
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-environment"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later,
+ MIT, BSD-3-Clause, BSD-2-Clause"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/PolyMC/quazip/archive/${_quazipversion}.tar.gz"
+checksum="78c7b24c6895a37f45f563b88cf0ad5cf26dd66264383ed77909e66065df9ea6
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir libraries/libnbtplusplus
+	rmdir libraries/quazip
+	mv ../libnbtplusplus-${_nbtversion} libraries/libnbtplusplus
+	mv ../quazip-${_quazipversion} libraries/quazip
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (10 preceding siblings ...)
  2022-02-18  9:23 ` [PR PATCH] [Updated] " oynqr
@ 2022-02-18  9:26 ` oynqr
  2022-02-18  9:26 ` oynqr
                   ` (64 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-18  9:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r809817405

Comment:
This was pretty much copied from the old MultiMC template, thanks for the heads-up.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (11 preceding siblings ...)
  2022-02-18  9:26 ` [PR REVIEW] " oynqr
@ 2022-02-18  9:26 ` oynqr
  2022-02-21  0:32 ` classabbyamp
                   ` (63 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-18  9:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r809817558

Comment:
Done.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (12 preceding siblings ...)
  2022-02-18  9:26 ` oynqr
@ 2022-02-21  0:32 ` classabbyamp
  2022-02-21  9:17 ` [PR PATCH] [Updated] " oynqr
                   ` (62 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: classabbyamp @ 2022-02-21  0:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1046361204

Comment:
I built this for myself and it works well

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (13 preceding siblings ...)
  2022-02-21  0:32 ` classabbyamp
@ 2022-02-21  9:17 ` oynqr
  2022-02-22 11:37 ` oynqr
                   ` (61 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-21  9:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 6129 bytes --]

From 5b90ffca3d766d99af3b624881def835fe816936 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.0.6

---
 .../PolyMC/patches/00-fix-translations.patch  | 81 +++++++++++++++++++
 srcpkgs/PolyMC/template                       | 37 +++++++++
 2 files changed, 118 insertions(+)
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-translations.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/patches/00-fix-translations.patch b/srcpkgs/PolyMC/patches/00-fix-translations.patch
new file mode 100644
index 000000000000..55ab84cfc9ef
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-translations.patch
@@ -0,0 +1,81 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b2507a48..b836b766 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -80,6 +80,9 @@ set(Launcher_MSA_CLIENT_ID "17b47edd-c884-4997-926d-9e7f9a6b4647" CACHE STRING "
+ # Bug tracker URL
+ set(Launcher_BUG_TRACKER_URL "https://github.com/PolyMC/PolyMC/issues" CACHE STRING "URL for the bug tracker.")
+ 
++# Translations Platform URL
++set(Launcher_TRANSLATIONS_URL "https://hosted.weblate.org/projects/polymc/polymc/" CACHE STRING "URL for the translations platform.")
++
+ # Discord URL
+ set(Launcher_DISCORD_URL "https://discord.gg/Z52pwxWCHP" CACHE STRING "URL for the Discord guild.")
+ 
+diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in
+index af8845dc..cd062c9b 100644
+--- a/buildconfig/BuildConfig.cpp.in
++++ b/buildconfig/BuildConfig.cpp.in
+@@ -48,6 +48,7 @@ Config::Config()
+     META_URL = "@Launcher_META_URL@";
+ 
+     BUG_TRACKER_URL = "@Launcher_BUG_TRACKER_URL@";
++    TRANSLATIONS_URL = "@Launcher_TRANSLATIONS_URL@";
+     DISCORD_URL = "@Launcher_DISCORD_URL@";
+     SUBREDDIT_URL = "@Launcher_SUBREDDIT_URL@";
+ }
+diff --git a/buildconfig/BuildConfig.h b/buildconfig/BuildConfig.h
+index 009fb2bc..7682ad1e 100644
+--- a/buildconfig/BuildConfig.h
++++ b/buildconfig/BuildConfig.h
+@@ -88,6 +88,7 @@ public:
+     QString META_URL;
+ 
+     QString BUG_TRACKER_URL;
++    QString TRANSLATIONS_URL;
+     QString DISCORD_URL;
+     QString SUBREDDIT_URL;
+ 
+@@ -96,7 +97,7 @@ public:
+     QString AUTH_BASE = "https://authserver.mojang.com/";
+     QString IMGUR_BASE_URL = "https://api.imgur.com/3/";
+     QString FMLLIBS_BASE_URL = "https://files.multimc.org/fmllibs/";
+-    QString TRANSLATIONS_BASE_URL = "https://files.multimc.org/translations/";
++    QString TRANSLATIONS_BASE_URL = "https://meta.polymc.org/translations/";
+ 
+     QString MODPACKSCH_API_BASE_URL = "https://api.modpacks.ch/";
+ 
+diff --git a/launcher/translations/TranslationsModel.cpp b/launcher/translations/TranslationsModel.cpp
+index 2e744007..5f7db4d7 100644
+--- a/launcher/translations/TranslationsModel.cpp
++++ b/launcher/translations/TranslationsModel.cpp
+@@ -576,7 +576,7 @@ void TranslationsModel::downloadIndex()
+     d->m_index_job = new NetJob("Translations Index", APPLICATION->network());
+     MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("translations", "index_v2.json");
+     entry->setStale(true);
+-    d->m_index_task = Net::Download::makeCached(QUrl("https://files.multimc.org/translations/index_v2.json"), entry);
++    d->m_index_task = Net::Download::makeCached(QUrl(BuildConfig.TRANSLATIONS_BASE_URL + "index_v2.json"), entry);
+     d->m_index_job->addNetAction(d->m_index_task);
+     connect(d->m_index_job.get(), &NetJob::failed, this, &TranslationsModel::indexFailed);
+     connect(d->m_index_job.get(), &NetJob::succeeded, this, &TranslationsModel::indexReceived);
+diff --git a/launcher/ui/widgets/LanguageSelectionWidget.cpp b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+index cf70c7b4..fc089f26 100644
+--- a/launcher/ui/widgets/LanguageSelectionWidget.cpp
++++ b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+@@ -5,6 +5,7 @@
+ #include <QHeaderView>
+ #include <QLabel>
+ #include "Application.h"
++#include "BuildConfig.h"
+ #include "translations/TranslationsModel.h"
+ 
+ LanguageSelectionWidget::LanguageSelectionWidget(QWidget *parent) :
+@@ -48,7 +49,7 @@ QString LanguageSelectionWidget::getSelectedLanguageKey() const
+ void LanguageSelectionWidget::retranslate()
+ {
+     QString text = tr("Don't see your language or the quality is poor?<br/><a href=\"%1\">Help us with translations!</a>")
+-        .arg("https://github.com/MultiMC/Launcher/wiki/Translating-MultiMC");
++        .arg(BuildConfig.TRANSLATIONS_URL);
+     helpUsLabel->setText(text);
+ 
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..68571b1bde28
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,37 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.0.6
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-environment"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later,
+ MIT, BSD-3-Clause, BSD-2-Clause"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/PolyMC/quazip/archive/${_quazipversion}.tar.gz"
+checksum="78c7b24c6895a37f45f563b88cf0ad5cf26dd66264383ed77909e66065df9ea6
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir libraries/libnbtplusplus
+	rmdir libraries/quazip
+	mv ../libnbtplusplus-${_nbtversion} libraries/libnbtplusplus
+	mv ../quazip-${_quazipversion} libraries/quazip
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (14 preceding siblings ...)
  2022-02-21  9:17 ` [PR PATCH] [Updated] " oynqr
@ 2022-02-22 11:37 ` oynqr
  2022-02-22 11:47 ` oynqr
                   ` (60 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-22 11:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 28824 bytes --]

From 4bc1d79e62725ecae569e3ae84ec8aa5e9df7032 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.0.6

---
 .../PolyMC/patches/00-backport-fixes.patch    | 693 ++++++++++++++++++
 srcpkgs/PolyMC/template                       |  37 +
 2 files changed, 730 insertions(+)
 create mode 100644 srcpkgs/PolyMC/patches/00-backport-fixes.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/patches/00-backport-fixes.patch b/srcpkgs/PolyMC/patches/00-backport-fixes.patch
new file mode 100644
index 000000000000..7b237a01957f
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-backport-fixes.patch
@@ -0,0 +1,693 @@
+# These are all upstream backports, to be dropped with the next release.
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b2507a48..d28b05f6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -46,7 +46,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_DEPRECATED_WARNINGS=Y")
+ ##################################### Set Application options #####################################
+ 
+ ######## Set URLs ########
+-set(Launcher_NEWS_RSS_URL "https://multimc.org/rss.xml" CACHE STRING "URL to fetch Launcher's news RSS feed from.")
++set(Launcher_NEWS_RSS_URL "https://polymc.github.io/feed/feed.xml" CACHE STRING "URL to fetch PolyMC's news RSS feed from.")
++set(Launcher_NEWS_OPEN_URL "https://polymc.github.io/news/" CACHE STRING "URL that gets opened when the user clicks 'More News'")
+ 
+ ######## Set version numbers ########
+ set(Launcher_VERSION_MAJOR    1)
+@@ -68,9 +69,6 @@ set(Launcher_NOTIFICATION_URL "" CACHE STRING "URL for checking for notification
+ # The metadata server
+ set(Launcher_META_URL "https://meta.polymc.org/v1/" CACHE STRING "URL to fetch PolyMC's meta files from.")
+ 
+-# paste.ee API key
+-set(Launcher_PASTE_EE_API_KEY "utLvciUouSURFzfjPxLBf5W4ISsUX4pwBDF7N1AfZ" CACHE STRING "API key you can get from paste.ee when you register an account")
+-
+ # Imgur API Client ID
+ set(Launcher_IMGUR_CLIENT_ID "5b97b0713fba4a3" CACHE STRING "Client ID you can get from Imgur when you register an application")
+ 
+@@ -80,6 +78,9 @@ set(Launcher_MSA_CLIENT_ID "17b47edd-c884-4997-926d-9e7f9a6b4647" CACHE STRING "
+ # Bug tracker URL
+ set(Launcher_BUG_TRACKER_URL "https://github.com/PolyMC/PolyMC/issues" CACHE STRING "URL for the bug tracker.")
+ 
++# Translations Platform URL
++set(Launcher_TRANSLATIONS_URL "https://hosted.weblate.org/projects/polymc/polymc/" CACHE STRING "URL for the translations platform.")
++
+ # Discord URL
+ set(Launcher_DISCORD_URL "https://discord.gg/Z52pwxWCHP" CACHE STRING "URL for the Discord guild.")
+ 
+diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in
+index af8845dc..2c872124 100644
+--- a/buildconfig/BuildConfig.cpp.in
++++ b/buildconfig/BuildConfig.cpp.in
+@@ -42,12 +42,13 @@ Config::Config()
+ 
+     VERSION_STR = "@Launcher_VERSION_STRING@";
+     NEWS_RSS_URL = "@Launcher_NEWS_RSS_URL@";
+-    PASTE_EE_KEY = "@Launcher_PASTE_EE_API_KEY@";
++    NEWS_OPEN_URL = "@Launcher_NEWS_OPEN_URL@";
+     IMGUR_CLIENT_ID = "@Launcher_IMGUR_CLIENT_ID@";
+     MSA_CLIENT_ID = "@Launcher_MSA_CLIENT_ID@";
+     META_URL = "@Launcher_META_URL@";
+ 
+     BUG_TRACKER_URL = "@Launcher_BUG_TRACKER_URL@";
++    TRANSLATIONS_URL = "@Launcher_TRANSLATIONS_URL@";
+     DISCORD_URL = "@Launcher_DISCORD_URL@";
+     SUBREDDIT_URL = "@Launcher_SUBREDDIT_URL@";
+ }
+diff --git a/buildconfig/BuildConfig.h b/buildconfig/BuildConfig.h
+index 009fb2bc..e70cd5c0 100644
+--- a/buildconfig/BuildConfig.h
++++ b/buildconfig/BuildConfig.h
+@@ -68,9 +68,9 @@ public:
+     QString NEWS_RSS_URL;
+ 
+     /**
+-     * API key you can get from paste.ee when you register an account
++     * URL that gets opened when the user clicks "More News"
+      */
+-    QString PASTE_EE_KEY;
++    QString NEWS_OPEN_URL;
+ 
+     /**
+      * Client ID you can get from Imgur when you register an application
+@@ -88,6 +88,7 @@ public:
+     QString META_URL;
+ 
+     QString BUG_TRACKER_URL;
++    QString TRANSLATIONS_URL;
+     QString DISCORD_URL;
+     QString SUBREDDIT_URL;
+ 
+@@ -96,7 +97,7 @@ public:
+     QString AUTH_BASE = "https://authserver.mojang.com/";
+     QString IMGUR_BASE_URL = "https://api.imgur.com/3/";
+     QString FMLLIBS_BASE_URL = "https://files.multimc.org/fmllibs/";
+-    QString TRANSLATIONS_BASE_URL = "https://files.multimc.org/translations/";
++    QString TRANSLATIONS_BASE_URL = "https://meta.polymc.org/translations/";
+ 
+     QString MODPACKSCH_API_BASE_URL = "https://api.modpacks.ch/";
+ 
+diff --git a/launcher/Application.cpp b/launcher/Application.cpp
+index 9bd4ebae..9472f0ef 100644
+--- a/launcher/Application.cpp
++++ b/launcher/Application.cpp
+@@ -14,7 +14,7 @@
+ #include "ui/pages/global/ProxyPage.h"
+ #include "ui/pages/global/ExternalToolsPage.h"
+ #include "ui/pages/global/AccountListPage.h"
+-#include "ui/pages/global/PasteEEPage.h"
++#include "ui/pages/global/PastePage.h"
+ #include "ui/pages/global/CustomCommandsPage.h"
+ 
+ #include "ui/themes/ITheme.h"
+@@ -714,8 +714,8 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
+ 
+         m_settings->registerSetting("UpdateDialogGeometry", "");
+ 
+-        // paste.ee API key
+-        m_settings->registerSetting("PasteEEAPIKey", "multimc");
++        // pastebin URL
++        m_settings->registerSetting("PastebinURL", "https://0x0.st");
+ 
+         // Init page provider
+         {
+@@ -728,7 +728,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
+             m_globalSettingsProvider->addPage<ProxyPage>();
+             m_globalSettingsProvider->addPage<ExternalToolsPage>();
+             m_globalSettingsProvider->addPage<AccountListPage>();
+-            m_globalSettingsProvider->addPage<PasteEEPage>();
++            m_globalSettingsProvider->addPage<PastePage>();
+         }
+         qDebug() << "<> Settings loaded.";
+     }
+diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt
+index b5c52afa..c49b68b2 100644
+--- a/launcher/CMakeLists.txt
++++ b/launcher/CMakeLists.txt
+@@ -707,8 +707,8 @@ SET(LAUNCHER_SOURCES
+     ui/pages/global/LauncherPage.h
+     ui/pages/global/ProxyPage.cpp
+     ui/pages/global/ProxyPage.h
+-    ui/pages/global/PasteEEPage.cpp
+-    ui/pages/global/PasteEEPage.h
++    ui/pages/global/PastePage.cpp
++    ui/pages/global/PastePage.h
+ 
+     # GUI - platform pages
+     ui/pages/modplatform/VanillaPage.cpp
+@@ -842,7 +842,7 @@ qt5_wrap_ui(LAUNCHER_UI
+     ui/pages/global/AccountListPage.ui
+     ui/pages/global/JavaPage.ui
+     ui/pages/global/LauncherPage.ui
+-    ui/pages/global/PasteEEPage.ui
++    ui/pages/global/PastePage.ui
+     ui/pages/global/ProxyPage.ui
+     ui/pages/global/MinecraftPage.ui
+     ui/pages/global/ExternalToolsPage.ui
+diff --git a/launcher/net/PasteUpload.cpp b/launcher/net/PasteUpload.cpp
+index 4b69b68a..6c5aa221 100644
+--- a/launcher/net/PasteUpload.cpp
++++ b/launcher/net/PasteUpload.cpp
+@@ -8,44 +8,34 @@
+ #include <QJsonDocument>
+ #include <QFile>
+ 
+-PasteUpload::PasteUpload(QWidget *window, QString text, QString key) : m_window(window)
++PasteUpload::PasteUpload(QWidget *window, QString text, QString url) : m_window(window), m_uploadUrl(url), m_text(text.toUtf8())
+ {
+-    m_key = key;
+-    QByteArray temp;
+-    QJsonObject topLevelObj;
+-    QJsonObject sectionObject;
+-    sectionObject.insert("contents", text);
+-    QJsonArray sectionArray;
+-    sectionArray.append(sectionObject);
+-    topLevelObj.insert("description", "Log Upload");
+-    topLevelObj.insert("sections", sectionArray);
+-    QJsonDocument docOut;
+-    docOut.setObject(topLevelObj);
+-    m_jsonContent = docOut.toJson();
+ }
+ 
+ PasteUpload::~PasteUpload()
+ {
+ }
+ 
+-bool PasteUpload::validateText()
+-{
+-    return m_jsonContent.size() <= maxSize();
+-}
+-
+ void PasteUpload::executeTask()
+ {
+-    QNetworkRequest request(QUrl("https://api.paste.ee/v1/pastes"));
++    QNetworkRequest request{QUrl(m_uploadUrl)};
+     request.setHeader(QNetworkRequest::UserAgentHeader, BuildConfig.USER_AGENT_UNCACHED);
+ 
+-    request.setRawHeader("Content-Type", "application/json");
+-    request.setRawHeader("Content-Length", QByteArray::number(m_jsonContent.size()));
+-    request.setRawHeader("X-Auth-Token", m_key.toStdString().c_str());
++    QHttpMultiPart *multiPart = new QHttpMultiPart{QHttpMultiPart::FormDataType};
+ 
+-    QNetworkReply *rep = APPLICATION->network()->post(request, m_jsonContent);
++    QHttpPart filePart;
++    filePart.setBody(m_text);
++    filePart.setHeader(QNetworkRequest::ContentTypeHeader, "text/plain");
++    filePart.setHeader(QNetworkRequest::ContentDispositionHeader, "form-data; name=\"file\"; filename=\"log.txt\"");
++
++    multiPart->append(filePart);
++
++    QNetworkReply *rep = APPLICATION->network()->post(request, multiPart);
++    multiPart->setParent(rep);
+ 
+     m_reply = std::shared_ptr<QNetworkReply>(rep);
+-    setStatus(tr("Uploading to paste.ee"));
++    setStatus(tr("Uploading to %1").arg(m_uploadUrl));
++
+     connect(rep, &QNetworkReply::uploadProgress, this, &Task::setProgress);
+     connect(rep, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(downloadError(QNetworkReply::NetworkError)));
+     connect(rep, SIGNAL(finished()), this, SLOT(downloadFinished()));
+@@ -61,45 +51,23 @@ void PasteUpload::downloadError(QNetworkReply::NetworkError error)
+ void PasteUpload::downloadFinished()
+ {
+     QByteArray data = m_reply->readAll();
+-    // if the download succeeded
+-    if (m_reply->error() == QNetworkReply::NetworkError::NoError)
++    int statusCode = m_reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
++
++    if (m_reply->error() != QNetworkReply::NetworkError::NoError)
+     {
+-        m_reply.reset();
+-        QJsonParseError jsonError;
+-        QJsonDocument doc = QJsonDocument::fromJson(data, &jsonError);
+-        if (jsonError.error != QJsonParseError::NoError)
+-        {
+-            emitFailed(jsonError.errorString());
+-            return;
+-        }
+-        if (!parseResult(doc))
+-        {
+-            emitFailed(tr("paste.ee returned an error. Please consult the logs for more information"));
+-            return;
+-        }
+-    }
+-    // else the download failed
+-    else
+-    {
+-        emitFailed(QString("Network error: %1").arg(m_reply->errorString()));
++        emitFailed(tr("Network error: %1").arg(m_reply->errorString()));
+         m_reply.reset();
+         return;
+     }
++    else if (statusCode != 200)
++    {
++        QString reasonPhrase = m_reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toString();
++        emitFailed(tr("Error: %1 returned unexpected status code %2 %3").arg(m_uploadUrl).arg(statusCode).arg(reasonPhrase));
++        qCritical() << m_uploadUrl << " returned unexpected status code " << statusCode << " with body: " << data;
++        m_reply.reset();
++        return;
++    }
++
++    m_pasteLink = QString::fromUtf8(data);
+     emitSucceeded();
+ }
+-
+-bool PasteUpload::parseResult(QJsonDocument doc)
+-{
+-    auto object = doc.object();
+-    auto status = object.value("success").toBool();
+-    if (!status)
+-    {
+-        qCritical() << "paste.ee reported error:" << QString(object.value("error").toString());
+-        return false;
+-    }
+-    m_pasteLink = object.value("link").toString();
+-    m_pasteID = object.value("id").toString();
+-    qDebug() << m_pasteLink;
+-    return true;
+-}
+-
+diff --git a/launcher/net/PasteUpload.h b/launcher/net/PasteUpload.h
+index 5514e058..62b2dc36 100644
+--- a/launcher/net/PasteUpload.h
++++ b/launcher/net/PasteUpload.h
+@@ -8,37 +8,21 @@ class PasteUpload : public Task
+ {
+     Q_OBJECT
+ public:
+-    PasteUpload(QWidget *window, QString text, QString key = "public");
++    PasteUpload(QWidget *window, QString text, QString url);
+     virtual ~PasteUpload();
+ 
+     QString pasteLink()
+     {
+         return m_pasteLink;
+     }
+-    QString pasteID()
+-    {
+-        return m_pasteID;
+-    }
+-    int maxSize()
+-    {
+-        // 2MB for paste.ee - public
+-        if(m_key == "public")
+-            return 1024*1024*2;
+-        // 12MB for paste.ee - with actual key
+-        return 1024*1024*12;
+-    }
+-    bool validateText();
+ protected:
+     virtual void executeTask();
+ 
+ private:
+-    bool parseResult(QJsonDocument doc);
+-    QString m_error;
+     QWidget *m_window;
+-    QString m_pasteID;
+     QString m_pasteLink;
+-    QString m_key;
+-    QByteArray m_jsonContent;
++    QString m_uploadUrl;
++    QByteArray m_text;
+     std::shared_ptr<QNetworkReply> m_reply;
+ public
+ slots:
+diff --git a/launcher/news/NewsChecker.cpp b/launcher/news/NewsChecker.cpp
+index 4f4359b8..6724950f 100644
+--- a/launcher/news/NewsChecker.cpp
++++ b/launcher/news/NewsChecker.cpp
+@@ -70,7 +70,7 @@ void NewsChecker::rssDownloadFinished()
+     }
+ 
+     // If the parsing succeeded, read it.
+-    QDomNodeList items = doc.elementsByTagName("item");
++    QDomNodeList items = doc.elementsByTagName("entry");
+     m_newsEntries.clear();
+     for (int i = 0; i < items.length(); i++)
+     {
+diff --git a/launcher/translations/TranslationsModel.cpp b/launcher/translations/TranslationsModel.cpp
+index 2e744007..5f7db4d7 100644
+--- a/launcher/translations/TranslationsModel.cpp
++++ b/launcher/translations/TranslationsModel.cpp
+@@ -576,7 +576,7 @@ void TranslationsModel::downloadIndex()
+     d->m_index_job = new NetJob("Translations Index", APPLICATION->network());
+     MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("translations", "index_v2.json");
+     entry->setStale(true);
+-    d->m_index_task = Net::Download::makeCached(QUrl("https://files.multimc.org/translations/index_v2.json"), entry);
++    d->m_index_task = Net::Download::makeCached(QUrl(BuildConfig.TRANSLATIONS_BASE_URL + "index_v2.json"), entry);
+     d->m_index_job->addNetAction(d->m_index_task);
+     connect(d->m_index_job.get(), &NetJob::failed, this, &TranslationsModel::indexFailed);
+     connect(d->m_index_job.get(), &NetJob::succeeded, this, &TranslationsModel::indexReceived);
+diff --git a/launcher/ui/GuiUtil.cpp b/launcher/ui/GuiUtil.cpp
+index efb1a4df..9eb658e2 100644
+--- a/launcher/ui/GuiUtil.cpp
++++ b/launcher/ui/GuiUtil.cpp
+@@ -16,21 +16,8 @@
+ QString GuiUtil::uploadPaste(const QString &text, QWidget *parentWidget)
+ {
+     ProgressDialog dialog(parentWidget);
+-    auto APIKeySetting = APPLICATION->settings()->get("PasteEEAPIKey").toString();
+-    if(APIKeySetting == "multimc")
+-    {
+-        APIKeySetting = BuildConfig.PASTE_EE_KEY;
+-    }
+-    std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, text, APIKeySetting));
+-
+-    if (!paste->validateText())
+-    {
+-        CustomMessageBox::selectable(
+-            parentWidget, QObject::tr("Upload failed"),
+-            QObject::tr("The log file is too big. You'll have to upload it manually."),
+-            QMessageBox::Warning)->exec();
+-        return QString();
+-    }
++    auto pasteUrlSetting = APPLICATION->settings()->get("PastebinURL").toString();
++    std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, text, pasteUrlSetting));
+ 
+     dialog.execWithTask(paste.get());
+     if (!paste->wasSuccessful())
+diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
+index 3dcc8ee9..32b27afb 100644
+--- a/launcher/ui/MainWindow.cpp
++++ b/launcher/ui/MainWindow.cpp
+@@ -1687,7 +1687,7 @@ void MainWindow::on_actionReportBug_triggered()
+ 
+ void MainWindow::on_actionMoreNews_triggered()
+ {
+-    DesktopServices::openUrl(QUrl("https://multimc.org/posts.html"));
++    DesktopServices::openUrl(QUrl(BuildConfig.NEWS_OPEN_URL));
+ }
+ 
+ void MainWindow::newsButtonClicked()
+@@ -1699,7 +1699,7 @@ void MainWindow::newsButtonClicked()
+     }
+     else
+     {
+-        DesktopServices::openUrl(QUrl("https://multimc.org/posts.html"));
++        DesktopServices::openUrl(QUrl(BuildConfig.NEWS_OPEN_URL));
+     }
+ }
+ 
+diff --git a/launcher/ui/pages/global/PasteEEPage.cpp b/launcher/ui/pages/global/PastePage.cpp
+similarity index 51%
+rename from launcher/ui/pages/global/PasteEEPage.cpp
+rename to launcher/ui/pages/global/PastePage.cpp
+index 4b375d9a..7c69e1a4 100644
+--- a/launcher/ui/pages/global/PasteEEPage.cpp
++++ b/launcher/ui/pages/global/PastePage.cpp
+@@ -1,4 +1,4 @@
+-/* Copyright 2013-2021 MultiMC Contributors
++/* Copyright 2013-2021 MultiMC & PolyMC Contributors
+  *
+  * Licensed under the Apache License, Version 2.0 (the "License");
+  * you may not use this file except in compliance with the License.
+@@ -13,69 +13,51 @@
+  * limitations under the License.
+  */
+ 
+-#include "PasteEEPage.h"
+-#include "ui_PasteEEPage.h"
++#include "PastePage.h"
++#include "ui_PastePage.h"
+ 
+ #include <QMessageBox>
+ #include <QFileDialog>
+ #include <QStandardPaths>
+ #include <QTabBar>
++#include <QVariant>
+ 
+ #include "settings/SettingsObject.h"
+ #include "tools/BaseProfiler.h"
+ #include "Application.h"
+ 
+-PasteEEPage::PasteEEPage(QWidget *parent) :
++PastePage::PastePage(QWidget *parent) :
+     QWidget(parent),
+-    ui(new Ui::PasteEEPage)
++    ui(new Ui::PastePage)
+ {
++    static QRegularExpression validUrlRegExp("https?://.+");
+     ui->setupUi(this);
++    ui->urlChoices->setValidator(new QRegularExpressionValidator(validUrlRegExp, ui->urlChoices));
+     ui->tabWidget->tabBar()->hide();\
+-    connect(ui->customAPIkeyEdit, &QLineEdit::textEdited, this, &PasteEEPage::textEdited);
+     loadSettings();
+ }
+ 
+-PasteEEPage::~PasteEEPage()
++PastePage::~PastePage()
+ {
+     delete ui;
+ }
+ 
+-void PasteEEPage::loadSettings()
++void PastePage::loadSettings()
+ {
+     auto s = APPLICATION->settings();
+-    QString keyToUse = s->get("PasteEEAPIKey").toString();
+-    if(keyToUse == "multimc")
+-    {
+-        ui->multimcButton->setChecked(true);
+-    }
+-    else
+-    {
+-        ui->customButton->setChecked(true);
+-        ui->customAPIkeyEdit->setText(keyToUse);
+-    }
++    QString pastebinURL = s->get("PastebinURL").toString();
++    ui->urlChoices->setCurrentText(pastebinURL);
+ }
+ 
+-void PasteEEPage::applySettings()
++void PastePage::applySettings()
+ {
+     auto s = APPLICATION->settings();
+-
+-    QString pasteKeyToUse;
+-    if (ui->customButton->isChecked())
+-        pasteKeyToUse = ui->customAPIkeyEdit->text();
+-    else
+-    {
+-        pasteKeyToUse =  "multimc";
+-    }
+-    s->set("PasteEEAPIKey", pasteKeyToUse);
++    QString pastebinURL = ui->urlChoices->currentText();
++    s->set("PastebinURL", pastebinURL);
+ }
+ 
+-bool PasteEEPage::apply()
++bool PastePage::apply()
+ {
+     applySettings();
+     return true;
+ }
+-
+-void PasteEEPage::textEdited(const QString& text)
+-{
+-    ui->customButton->setChecked(true);
+-}
+diff --git a/launcher/ui/pages/global/PasteEEPage.h b/launcher/ui/pages/global/PastePage.h
+similarity index 84%
+rename from launcher/ui/pages/global/PasteEEPage.h
+rename to launcher/ui/pages/global/PastePage.h
+index a1c7d434..d475dfd9 100644
+--- a/launcher/ui/pages/global/PasteEEPage.h
++++ b/launcher/ui/pages/global/PastePage.h
+@@ -21,16 +21,16 @@
+ #include <Application.h>
+ 
+ namespace Ui {
+-class PasteEEPage;
++class PastePage;
+ }
+ 
+-class PasteEEPage : public QWidget, public BasePage
++class PastePage : public QWidget, public BasePage
+ {
+     Q_OBJECT
+ 
+ public:
+-    explicit PasteEEPage(QWidget *parent = 0);
+-    ~PasteEEPage();
++    explicit PastePage(QWidget *parent = 0);
++    ~PastePage();
+ 
+     QString displayName() const override
+     {
+@@ -54,9 +54,7 @@ private:
+     void loadSettings();
+     void applySettings();
+ 
+-private slots:
+-    void textEdited(const QString &text);
+-
+ private:
+-    Ui::PasteEEPage *ui;
++    Ui::PastePage *ui;
+ };
++
+diff --git a/launcher/ui/pages/global/PasteEEPage.ui b/launcher/ui/pages/global/PastePage.ui
+similarity index 61%
+rename from launcher/ui/pages/global/PasteEEPage.ui
+rename to launcher/ui/pages/global/PastePage.ui
+index 10883781..2d13a765 100644
+--- a/launcher/ui/pages/global/PasteEEPage.ui
++++ b/launcher/ui/pages/global/PastePage.ui
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <ui version="4.0">
+- <class>PasteEEPage</class>
+- <widget class="QWidget" name="PasteEEPage">
++ <class>PastePage</class>
++ <widget class="QWidget" name="PastePage">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+@@ -36,39 +36,9 @@
+        <item>
+         <widget class="QGroupBox" name="groupBox_2">
+          <property name="title">
+-          <string>paste.ee API key</string>
++          <string>Pastebin URL</string>
+          </property>
+-         <layout class="QVBoxLayout" name="verticalLayout_10">
+-          <item>
+-           <widget class="QRadioButton" name="multimcButton">
+-            <property name="text">
+-             <string>MultiMC key - 12MB &amp;upload limit</string>
+-            </property>
+-            <attribute name="buttonGroup">
+-             <string notr="true">pasteButtonGroup</string>
+-            </attribute>
+-           </widget>
+-          </item>
+-          <item>
+-           <widget class="QRadioButton" name="customButton">
+-            <property name="text">
+-             <string>&amp;Your own key - 12MB upload limit:</string>
+-            </property>
+-            <attribute name="buttonGroup">
+-             <string notr="true">pasteButtonGroup</string>
+-            </attribute>
+-           </widget>
+-          </item>
+-          <item>
+-           <widget class="QLineEdit" name="customAPIkeyEdit">
+-            <property name="echoMode">
+-             <enum>QLineEdit::Password</enum>
+-            </property>
+-            <property name="placeholderText">
+-             <string>Paste your API key here!</string>
+-            </property>
+-           </widget>
+-          </item>
++         <layout class="QVBoxLayout" name="verticalLayout_3">
+           <item>
+            <widget class="Line" name="line">
+             <property name="orientation">
+@@ -76,10 +46,45 @@
+             </property>
+            </widget>
+           </item>
++          <item>
++           <widget class="QLabel" name="label_2">
++            <property name="font">
++             <font>
++              <pointsize>10</pointsize>
++             </font>
++            </property>
++            <property name="text">
++             <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Note: only input that starts with &lt;span style=&quot; font-weight:600;&quot;&gt;http://&lt;/span&gt; or &lt;span style=&quot; font-weight:600;&quot;&gt;https://&lt;/span&gt; will be accepted.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
++            </property>
++            <property name="scaledContents">
++             <bool>false</bool>
++            </property>
++           </widget>
++          </item>
++          <item>
++           <widget class="QComboBox" name="urlChoices">
++            <property name="editable">
++             <bool>true</bool>
++            </property>
++            <property name="insertPolicy">
++             <enum>QComboBox::NoInsert</enum>
++            </property>
++            <item>
++             <property name="text">
++              <string>https://0x0.st</string>
++             </property>
++            </item>
++            <item>
++             <property name="text">
++              <string>https://paste.polymc.org</string>
++             </property>
++            </item>
++           </widget>
++          </item>
+           <item>
+            <widget class="QLabel" name="label">
+             <property name="text">
+-             <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://paste.ee&quot;&gt;paste.ee&lt;/a&gt; is used by MultiMC for log uploads. If you have a &lt;a href=&quot;https://paste.ee&quot;&gt;paste.ee&lt;/a&gt; account, you can add your API key here and have your uploaded logs paired with your account.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
++             <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Here you can choose from a predefined list of paste services, or input the URL of a different paste service of your choice, provided it supports the same protocol as 0x0.st, that is POST a file parameter to the URL and return a link in the response body.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+             </property>
+             <property name="textFormat">
+              <enum>Qt::RichText</enum>
+@@ -116,13 +121,7 @@
+  </widget>
+  <tabstops>
+   <tabstop>tabWidget</tabstop>
+-  <tabstop>multimcButton</tabstop>
+-  <tabstop>customButton</tabstop>
+-  <tabstop>customAPIkeyEdit</tabstop>
+  </tabstops>
+  <resources/>
+  <connections/>
+- <buttongroups>
+-  <buttongroup name="pasteButtonGroup"/>
+- </buttongroups>
+ </ui>
+diff --git a/launcher/ui/pages/instance/LogPage.ui b/launcher/ui/pages/instance/LogPage.ui
+index ccfc1551..31bb368c 100644
+--- a/launcher/ui/pages/instance/LogPage.ui
++++ b/launcher/ui/pages/instance/LogPage.ui
+@@ -100,7 +100,7 @@
+          <item>
+           <widget class="QPushButton" name="btnPaste">
+            <property name="toolTip">
+-            <string>Upload the log to paste.ee - it will stay online for a month</string>
++            <string>Upload the log to the paste service configured in preferences</string>
+            </property>
+            <property name="text">
+             <string>Upload</string>
+diff --git a/launcher/ui/pages/instance/OtherLogsPage.ui b/launcher/ui/pages/instance/OtherLogsPage.ui
+index 56ff3b62..77f3e647 100644
+--- a/launcher/ui/pages/instance/OtherLogsPage.ui
++++ b/launcher/ui/pages/instance/OtherLogsPage.ui
+@@ -84,7 +84,7 @@
+          <item row="3" column="2">
+           <widget class="QPushButton" name="btnPaste">
+            <property name="toolTip">
+-            <string>Upload the log to paste.ee - it will stay online for a month</string>
++            <string>Upload the log to the paste service configured in preferences.</string>
+            </property>
+            <property name="text">
+             <string>Upload</string>
+diff --git a/launcher/ui/widgets/LanguageSelectionWidget.cpp b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+index cf70c7b4..fc089f26 100644
+--- a/launcher/ui/widgets/LanguageSelectionWidget.cpp
++++ b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+@@ -5,6 +5,7 @@
+ #include <QHeaderView>
+ #include <QLabel>
+ #include "Application.h"
++#include "BuildConfig.h"
+ #include "translations/TranslationsModel.h"
+ 
+ LanguageSelectionWidget::LanguageSelectionWidget(QWidget *parent) :
+@@ -48,7 +49,7 @@ QString LanguageSelectionWidget::getSelectedLanguageKey() const
+ void LanguageSelectionWidget::retranslate()
+ {
+     QString text = tr("Don't see your language or the quality is poor?<br/><a href=\"%1\">Help us with translations!</a>")
+-        .arg("https://github.com/MultiMC/Launcher/wiki/Translating-MultiMC");
++        .arg(BuildConfig.TRANSLATIONS_URL);
+     helpUsLabel->setText(text);
+ 
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..68571b1bde28
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,37 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.0.6
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-environment"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later,
+ MIT, BSD-3-Clause, BSD-2-Clause"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/PolyMC/quazip/archive/${_quazipversion}.tar.gz"
+checksum="78c7b24c6895a37f45f563b88cf0ad5cf26dd66264383ed77909e66065df9ea6
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir libraries/libnbtplusplus
+	rmdir libraries/quazip
+	mv ../libnbtplusplus-${_nbtversion} libraries/libnbtplusplus
+	mv ../quazip-${_quazipversion} libraries/quazip
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (15 preceding siblings ...)
  2022-02-22 11:37 ` oynqr
@ 2022-02-22 11:47 ` oynqr
  2022-02-25 12:34 ` JamiKettunen
                   ` (59 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-22 11:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

New comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1047715018

Comment:
Backported some changes to the news section and paste uploading.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (16 preceding siblings ...)
  2022-02-22 11:47 ` oynqr
@ 2022-02-25 12:34 ` JamiKettunen
  2022-02-25 12:55 ` JamiKettunen
                   ` (58 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: JamiKettunen @ 2022-02-25 12:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

New comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1050816521

Comment:
Would it be unreasonable to bump to `openjdk17` in `hostmakedepends`?

Also surely we don't need a `java-environment` (JDK) but just a `java-runtime` (JRE) in `depends`?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (17 preceding siblings ...)
  2022-02-25 12:34 ` JamiKettunen
@ 2022-02-25 12:55 ` JamiKettunen
  2022-02-25 12:55 ` [PR REVIEW] " JamiKettunen
                   ` (57 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: JamiKettunen @ 2022-02-25 12:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

New comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1050816521

Comment:
Would it be unreasonable to bump to `openjdk17` in `hostmakedepends`?

Also surely we don't need a `java-environment` (JDK) but just a `java-runtime` (JRE) in `depends`?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (19 preceding siblings ...)
  2022-02-25 12:55 ` [PR REVIEW] " JamiKettunen
@ 2022-02-25 12:55 ` JamiKettunen
  2022-02-25 12:59 ` JamiKettunen
                   ` (55 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: JamiKettunen @ 2022-02-25 12:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

New review comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r814743088

Comment:
Would it be unreasonable to bump this to `openjdk17`?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (18 preceding siblings ...)
  2022-02-25 12:55 ` JamiKettunen
@ 2022-02-25 12:55 ` JamiKettunen
  2022-02-25 12:55 ` JamiKettunen
                   ` (56 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: JamiKettunen @ 2022-02-25 12:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New review comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r814744905

Comment:
Surely we don't need a `java-environment` (JDK) but just a `java-runtime` (JRE)?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (20 preceding siblings ...)
  2022-02-25 12:55 ` JamiKettunen
@ 2022-02-25 12:59 ` JamiKettunen
  2022-02-25 15:06 ` classabbyamp
                   ` (54 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: JamiKettunen @ 2022-02-25 12:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

New review comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r814747597

Comment:
This could perhaps point to https://polymc.github.io/

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (21 preceding siblings ...)
  2022-02-25 12:59 ` JamiKettunen
@ 2022-02-25 15:06 ` classabbyamp
  2022-02-25 19:47 ` JamiKettunen
                   ` (53 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: classabbyamp @ 2022-02-25 15:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r814844513

Comment:
their build instructions say jdk17: https://github.com/PolyMC/PolyMC/blob/develop/BUILD.md 

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (22 preceding siblings ...)
  2022-02-25 15:06 ` classabbyamp
@ 2022-02-25 19:47 ` JamiKettunen
  2022-02-26  9:34 ` oynqr
                   ` (52 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: JamiKettunen @ 2022-02-25 19:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

New review comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r814747597

Comment:
~~This could perhaps point to https://polymc.github.io/~~ nvm it already redirects to https://polymc.org/ now :)

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (23 preceding siblings ...)
  2022-02-25 19:47 ` JamiKettunen
@ 2022-02-26  9:34 ` oynqr
  2022-02-26  9:36 ` Scrumplex
                   ` (51 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-26  9:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r815291351

Comment:
It builds fine with any jdk from 8-17. Are there any advantages to building with openjdk17?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (24 preceding siblings ...)
  2022-02-26  9:34 ` oynqr
@ 2022-02-26  9:36 ` Scrumplex
  2022-02-26  9:39 ` oynqr
                   ` (50 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: Scrumplex @ 2022-02-26  9:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 241 bytes --]

New review comment by Scrumplex on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r815291462

Comment:
Any JDK from 8 through 17 will be fine, as the resulting JAR file will target Java 8 anyway.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (25 preceding siblings ...)
  2022-02-26  9:36 ` Scrumplex
@ 2022-02-26  9:39 ` oynqr
  2022-02-26  9:40 ` [PR PATCH] [Updated] " oynqr
                   ` (49 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-26  9:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r815291677

Comment:
This makes sense, now that jre and jdk are split again with 17.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (26 preceding siblings ...)
  2022-02-26  9:39 ` oynqr
@ 2022-02-26  9:40 ` oynqr
  2022-02-26  9:43 ` [PR REVIEW] " oynqr
                   ` (48 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-26  9:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 28807 bytes --]

From 28bc11ae23c5e737d287eb6a5b0913467a7532f8 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.0.6

---
 .../PolyMC/patches/00-backport-fixes.patch    | 693 ++++++++++++++++++
 srcpkgs/PolyMC/template                       |  37 +
 2 files changed, 730 insertions(+)
 create mode 100644 srcpkgs/PolyMC/patches/00-backport-fixes.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/patches/00-backport-fixes.patch b/srcpkgs/PolyMC/patches/00-backport-fixes.patch
new file mode 100644
index 000000000000..9aa6982c8639
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-backport-fixes.patch
@@ -0,0 +1,693 @@
+# These are all upstream backports, to be dropped with the next release.
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b2507a48..d28b05f6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -46,7 +46,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_DEPRECATED_WARNINGS=Y")
+ ##################################### Set Application options #####################################
+ 
+ ######## Set URLs ########
+-set(Launcher_NEWS_RSS_URL "https://multimc.org/rss.xml" CACHE STRING "URL to fetch Launcher's news RSS feed from.")
++set(Launcher_NEWS_RSS_URL "https://polymc.github.io/feed/feed.xml" CACHE STRING "URL to fetch PolyMC's news RSS feed from.")
++set(Launcher_NEWS_OPEN_URL "https://polymc.github.io/news/" CACHE STRING "URL that gets opened when the user clicks 'More News'")
+ 
+ ######## Set version numbers ########
+ set(Launcher_VERSION_MAJOR    1)
+@@ -68,9 +69,6 @@ set(Launcher_NOTIFICATION_URL "" CACHE STRING "URL for checking for notification
+ # The metadata server
+ set(Launcher_META_URL "https://meta.polymc.org/v1/" CACHE STRING "URL to fetch PolyMC's meta files from.")
+ 
+-# paste.ee API key
+-set(Launcher_PASTE_EE_API_KEY "utLvciUouSURFzfjPxLBf5W4ISsUX4pwBDF7N1AfZ" CACHE STRING "API key you can get from paste.ee when you register an account")
+-
+ # Imgur API Client ID
+ set(Launcher_IMGUR_CLIENT_ID "5b97b0713fba4a3" CACHE STRING "Client ID you can get from Imgur when you register an application")
+ 
+@@ -80,6 +78,9 @@ set(Launcher_MSA_CLIENT_ID "17b47edd-c884-4997-926d-9e7f9a6b4647" CACHE STRING "
+ # Bug tracker URL
+ set(Launcher_BUG_TRACKER_URL "https://github.com/PolyMC/PolyMC/issues" CACHE STRING "URL for the bug tracker.")
+ 
++# Translations Platform URL
++set(Launcher_TRANSLATIONS_URL "https://hosted.weblate.org/projects/polymc/polymc/" CACHE STRING "URL for the translations platform.")
++
+ # Discord URL
+ set(Launcher_DISCORD_URL "https://discord.gg/Z52pwxWCHP" CACHE STRING "URL for the Discord guild.")
+ 
+diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in
+index af8845dc..2c872124 100644
+--- a/buildconfig/BuildConfig.cpp.in
++++ b/buildconfig/BuildConfig.cpp.in
+@@ -42,12 +42,13 @@ Config::Config()
+ 
+     VERSION_STR = "@Launcher_VERSION_STRING@";
+     NEWS_RSS_URL = "@Launcher_NEWS_RSS_URL@";
+-    PASTE_EE_KEY = "@Launcher_PASTE_EE_API_KEY@";
++    NEWS_OPEN_URL = "@Launcher_NEWS_OPEN_URL@";
+     IMGUR_CLIENT_ID = "@Launcher_IMGUR_CLIENT_ID@";
+     MSA_CLIENT_ID = "@Launcher_MSA_CLIENT_ID@";
+     META_URL = "@Launcher_META_URL@";
+ 
+     BUG_TRACKER_URL = "@Launcher_BUG_TRACKER_URL@";
++    TRANSLATIONS_URL = "@Launcher_TRANSLATIONS_URL@";
+     DISCORD_URL = "@Launcher_DISCORD_URL@";
+     SUBREDDIT_URL = "@Launcher_SUBREDDIT_URL@";
+ }
+diff --git a/buildconfig/BuildConfig.h b/buildconfig/BuildConfig.h
+index 009fb2bc..760d208a 100644
+--- a/buildconfig/BuildConfig.h
++++ b/buildconfig/BuildConfig.h
+@@ -68,9 +68,9 @@ public:
+     QString NEWS_RSS_URL;
+ 
+     /**
+-     * API key you can get from paste.ee when you register an account
++     * URL that gets opened when the user clicks "More News"
+      */
+-    QString PASTE_EE_KEY;
++    QString NEWS_OPEN_URL;
+ 
+     /**
+      * Client ID you can get from Imgur when you register an application
+@@ -88,6 +88,7 @@ public:
+     QString META_URL;
+ 
+     QString BUG_TRACKER_URL;
++    QString TRANSLATIONS_URL;
+     QString DISCORD_URL;
+     QString SUBREDDIT_URL;
+ 
+@@ -96,7 +97,7 @@ public:
+     QString AUTH_BASE = "https://authserver.mojang.com/";
+     QString IMGUR_BASE_URL = "https://api.imgur.com/3/";
+     QString FMLLIBS_BASE_URL = "https://files.multimc.org/fmllibs/";
+-    QString TRANSLATIONS_BASE_URL = "https://files.multimc.org/translations/";
++    QString TRANSLATIONS_BASE_URL = "https://i18n.polymc.org/";
+ 
+     QString MODPACKSCH_API_BASE_URL = "https://api.modpacks.ch/";
+ 
+diff --git a/launcher/Application.cpp b/launcher/Application.cpp
+index 9bd4ebae..9472f0ef 100644
+--- a/launcher/Application.cpp
++++ b/launcher/Application.cpp
+@@ -14,7 +14,7 @@
+ #include "ui/pages/global/ProxyPage.h"
+ #include "ui/pages/global/ExternalToolsPage.h"
+ #include "ui/pages/global/AccountListPage.h"
+-#include "ui/pages/global/PasteEEPage.h"
++#include "ui/pages/global/PastePage.h"
+ #include "ui/pages/global/CustomCommandsPage.h"
+ 
+ #include "ui/themes/ITheme.h"
+@@ -714,8 +714,8 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
+ 
+         m_settings->registerSetting("UpdateDialogGeometry", "");
+ 
+-        // paste.ee API key
+-        m_settings->registerSetting("PasteEEAPIKey", "multimc");
++        // pastebin URL
++        m_settings->registerSetting("PastebinURL", "https://0x0.st");
+ 
+         // Init page provider
+         {
+@@ -728,7 +728,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
+             m_globalSettingsProvider->addPage<ProxyPage>();
+             m_globalSettingsProvider->addPage<ExternalToolsPage>();
+             m_globalSettingsProvider->addPage<AccountListPage>();
+-            m_globalSettingsProvider->addPage<PasteEEPage>();
++            m_globalSettingsProvider->addPage<PastePage>();
+         }
+         qDebug() << "<> Settings loaded.";
+     }
+diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt
+index b5c52afa..c49b68b2 100644
+--- a/launcher/CMakeLists.txt
++++ b/launcher/CMakeLists.txt
+@@ -707,8 +707,8 @@ SET(LAUNCHER_SOURCES
+     ui/pages/global/LauncherPage.h
+     ui/pages/global/ProxyPage.cpp
+     ui/pages/global/ProxyPage.h
+-    ui/pages/global/PasteEEPage.cpp
+-    ui/pages/global/PasteEEPage.h
++    ui/pages/global/PastePage.cpp
++    ui/pages/global/PastePage.h
+ 
+     # GUI - platform pages
+     ui/pages/modplatform/VanillaPage.cpp
+@@ -842,7 +842,7 @@ qt5_wrap_ui(LAUNCHER_UI
+     ui/pages/global/AccountListPage.ui
+     ui/pages/global/JavaPage.ui
+     ui/pages/global/LauncherPage.ui
+-    ui/pages/global/PasteEEPage.ui
++    ui/pages/global/PastePage.ui
+     ui/pages/global/ProxyPage.ui
+     ui/pages/global/MinecraftPage.ui
+     ui/pages/global/ExternalToolsPage.ui
+diff --git a/launcher/net/PasteUpload.cpp b/launcher/net/PasteUpload.cpp
+index 4b69b68a..6c5aa221 100644
+--- a/launcher/net/PasteUpload.cpp
++++ b/launcher/net/PasteUpload.cpp
+@@ -8,44 +8,34 @@
+ #include <QJsonDocument>
+ #include <QFile>
+ 
+-PasteUpload::PasteUpload(QWidget *window, QString text, QString key) : m_window(window)
++PasteUpload::PasteUpload(QWidget *window, QString text, QString url) : m_window(window), m_uploadUrl(url), m_text(text.toUtf8())
+ {
+-    m_key = key;
+-    QByteArray temp;
+-    QJsonObject topLevelObj;
+-    QJsonObject sectionObject;
+-    sectionObject.insert("contents", text);
+-    QJsonArray sectionArray;
+-    sectionArray.append(sectionObject);
+-    topLevelObj.insert("description", "Log Upload");
+-    topLevelObj.insert("sections", sectionArray);
+-    QJsonDocument docOut;
+-    docOut.setObject(topLevelObj);
+-    m_jsonContent = docOut.toJson();
+ }
+ 
+ PasteUpload::~PasteUpload()
+ {
+ }
+ 
+-bool PasteUpload::validateText()
+-{
+-    return m_jsonContent.size() <= maxSize();
+-}
+-
+ void PasteUpload::executeTask()
+ {
+-    QNetworkRequest request(QUrl("https://api.paste.ee/v1/pastes"));
++    QNetworkRequest request{QUrl(m_uploadUrl)};
+     request.setHeader(QNetworkRequest::UserAgentHeader, BuildConfig.USER_AGENT_UNCACHED);
+ 
+-    request.setRawHeader("Content-Type", "application/json");
+-    request.setRawHeader("Content-Length", QByteArray::number(m_jsonContent.size()));
+-    request.setRawHeader("X-Auth-Token", m_key.toStdString().c_str());
++    QHttpMultiPart *multiPart = new QHttpMultiPart{QHttpMultiPart::FormDataType};
+ 
+-    QNetworkReply *rep = APPLICATION->network()->post(request, m_jsonContent);
++    QHttpPart filePart;
++    filePart.setBody(m_text);
++    filePart.setHeader(QNetworkRequest::ContentTypeHeader, "text/plain");
++    filePart.setHeader(QNetworkRequest::ContentDispositionHeader, "form-data; name=\"file\"; filename=\"log.txt\"");
++
++    multiPart->append(filePart);
++
++    QNetworkReply *rep = APPLICATION->network()->post(request, multiPart);
++    multiPart->setParent(rep);
+ 
+     m_reply = std::shared_ptr<QNetworkReply>(rep);
+-    setStatus(tr("Uploading to paste.ee"));
++    setStatus(tr("Uploading to %1").arg(m_uploadUrl));
++
+     connect(rep, &QNetworkReply::uploadProgress, this, &Task::setProgress);
+     connect(rep, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(downloadError(QNetworkReply::NetworkError)));
+     connect(rep, SIGNAL(finished()), this, SLOT(downloadFinished()));
+@@ -61,45 +51,23 @@ void PasteUpload::downloadError(QNetworkReply::NetworkError error)
+ void PasteUpload::downloadFinished()
+ {
+     QByteArray data = m_reply->readAll();
+-    // if the download succeeded
+-    if (m_reply->error() == QNetworkReply::NetworkError::NoError)
++    int statusCode = m_reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
++
++    if (m_reply->error() != QNetworkReply::NetworkError::NoError)
+     {
+-        m_reply.reset();
+-        QJsonParseError jsonError;
+-        QJsonDocument doc = QJsonDocument::fromJson(data, &jsonError);
+-        if (jsonError.error != QJsonParseError::NoError)
+-        {
+-            emitFailed(jsonError.errorString());
+-            return;
+-        }
+-        if (!parseResult(doc))
+-        {
+-            emitFailed(tr("paste.ee returned an error. Please consult the logs for more information"));
+-            return;
+-        }
+-    }
+-    // else the download failed
+-    else
+-    {
+-        emitFailed(QString("Network error: %1").arg(m_reply->errorString()));
++        emitFailed(tr("Network error: %1").arg(m_reply->errorString()));
+         m_reply.reset();
+         return;
+     }
++    else if (statusCode != 200)
++    {
++        QString reasonPhrase = m_reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toString();
++        emitFailed(tr("Error: %1 returned unexpected status code %2 %3").arg(m_uploadUrl).arg(statusCode).arg(reasonPhrase));
++        qCritical() << m_uploadUrl << " returned unexpected status code " << statusCode << " with body: " << data;
++        m_reply.reset();
++        return;
++    }
++
++    m_pasteLink = QString::fromUtf8(data);
+     emitSucceeded();
+ }
+-
+-bool PasteUpload::parseResult(QJsonDocument doc)
+-{
+-    auto object = doc.object();
+-    auto status = object.value("success").toBool();
+-    if (!status)
+-    {
+-        qCritical() << "paste.ee reported error:" << QString(object.value("error").toString());
+-        return false;
+-    }
+-    m_pasteLink = object.value("link").toString();
+-    m_pasteID = object.value("id").toString();
+-    qDebug() << m_pasteLink;
+-    return true;
+-}
+-
+diff --git a/launcher/net/PasteUpload.h b/launcher/net/PasteUpload.h
+index 5514e058..62b2dc36 100644
+--- a/launcher/net/PasteUpload.h
++++ b/launcher/net/PasteUpload.h
+@@ -8,37 +8,21 @@ class PasteUpload : public Task
+ {
+     Q_OBJECT
+ public:
+-    PasteUpload(QWidget *window, QString text, QString key = "public");
++    PasteUpload(QWidget *window, QString text, QString url);
+     virtual ~PasteUpload();
+ 
+     QString pasteLink()
+     {
+         return m_pasteLink;
+     }
+-    QString pasteID()
+-    {
+-        return m_pasteID;
+-    }
+-    int maxSize()
+-    {
+-        // 2MB for paste.ee - public
+-        if(m_key == "public")
+-            return 1024*1024*2;
+-        // 12MB for paste.ee - with actual key
+-        return 1024*1024*12;
+-    }
+-    bool validateText();
+ protected:
+     virtual void executeTask();
+ 
+ private:
+-    bool parseResult(QJsonDocument doc);
+-    QString m_error;
+     QWidget *m_window;
+-    QString m_pasteID;
+     QString m_pasteLink;
+-    QString m_key;
+-    QByteArray m_jsonContent;
++    QString m_uploadUrl;
++    QByteArray m_text;
+     std::shared_ptr<QNetworkReply> m_reply;
+ public
+ slots:
+diff --git a/launcher/news/NewsChecker.cpp b/launcher/news/NewsChecker.cpp
+index 4f4359b8..6724950f 100644
+--- a/launcher/news/NewsChecker.cpp
++++ b/launcher/news/NewsChecker.cpp
+@@ -70,7 +70,7 @@ void NewsChecker::rssDownloadFinished()
+     }
+ 
+     // If the parsing succeeded, read it.
+-    QDomNodeList items = doc.elementsByTagName("item");
++    QDomNodeList items = doc.elementsByTagName("entry");
+     m_newsEntries.clear();
+     for (int i = 0; i < items.length(); i++)
+     {
+diff --git a/launcher/translations/TranslationsModel.cpp b/launcher/translations/TranslationsModel.cpp
+index 2e744007..5f7db4d7 100644
+--- a/launcher/translations/TranslationsModel.cpp
++++ b/launcher/translations/TranslationsModel.cpp
+@@ -576,7 +576,7 @@ void TranslationsModel::downloadIndex()
+     d->m_index_job = new NetJob("Translations Index", APPLICATION->network());
+     MetaEntryPtr entry = APPLICATION->metacache()->resolveEntry("translations", "index_v2.json");
+     entry->setStale(true);
+-    d->m_index_task = Net::Download::makeCached(QUrl("https://files.multimc.org/translations/index_v2.json"), entry);
++    d->m_index_task = Net::Download::makeCached(QUrl(BuildConfig.TRANSLATIONS_BASE_URL + "index_v2.json"), entry);
+     d->m_index_job->addNetAction(d->m_index_task);
+     connect(d->m_index_job.get(), &NetJob::failed, this, &TranslationsModel::indexFailed);
+     connect(d->m_index_job.get(), &NetJob::succeeded, this, &TranslationsModel::indexReceived);
+diff --git a/launcher/ui/GuiUtil.cpp b/launcher/ui/GuiUtil.cpp
+index efb1a4df..9eb658e2 100644
+--- a/launcher/ui/GuiUtil.cpp
++++ b/launcher/ui/GuiUtil.cpp
+@@ -16,21 +16,8 @@
+ QString GuiUtil::uploadPaste(const QString &text, QWidget *parentWidget)
+ {
+     ProgressDialog dialog(parentWidget);
+-    auto APIKeySetting = APPLICATION->settings()->get("PasteEEAPIKey").toString();
+-    if(APIKeySetting == "multimc")
+-    {
+-        APIKeySetting = BuildConfig.PASTE_EE_KEY;
+-    }
+-    std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, text, APIKeySetting));
+-
+-    if (!paste->validateText())
+-    {
+-        CustomMessageBox::selectable(
+-            parentWidget, QObject::tr("Upload failed"),
+-            QObject::tr("The log file is too big. You'll have to upload it manually."),
+-            QMessageBox::Warning)->exec();
+-        return QString();
+-    }
++    auto pasteUrlSetting = APPLICATION->settings()->get("PastebinURL").toString();
++    std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, text, pasteUrlSetting));
+ 
+     dialog.execWithTask(paste.get());
+     if (!paste->wasSuccessful())
+diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
+index 3dcc8ee9..32b27afb 100644
+--- a/launcher/ui/MainWindow.cpp
++++ b/launcher/ui/MainWindow.cpp
+@@ -1687,7 +1687,7 @@ void MainWindow::on_actionReportBug_triggered()
+ 
+ void MainWindow::on_actionMoreNews_triggered()
+ {
+-    DesktopServices::openUrl(QUrl("https://multimc.org/posts.html"));
++    DesktopServices::openUrl(QUrl(BuildConfig.NEWS_OPEN_URL));
+ }
+ 
+ void MainWindow::newsButtonClicked()
+@@ -1699,7 +1699,7 @@ void MainWindow::newsButtonClicked()
+     }
+     else
+     {
+-        DesktopServices::openUrl(QUrl("https://multimc.org/posts.html"));
++        DesktopServices::openUrl(QUrl(BuildConfig.NEWS_OPEN_URL));
+     }
+ }
+ 
+diff --git a/launcher/ui/pages/global/PasteEEPage.cpp b/launcher/ui/pages/global/PastePage.cpp
+similarity index 51%
+rename from launcher/ui/pages/global/PasteEEPage.cpp
+rename to launcher/ui/pages/global/PastePage.cpp
+index 4b375d9a..7c69e1a4 100644
+--- a/launcher/ui/pages/global/PasteEEPage.cpp
++++ b/launcher/ui/pages/global/PastePage.cpp
+@@ -1,4 +1,4 @@
+-/* Copyright 2013-2021 MultiMC Contributors
++/* Copyright 2013-2021 MultiMC & PolyMC Contributors
+  *
+  * Licensed under the Apache License, Version 2.0 (the "License");
+  * you may not use this file except in compliance with the License.
+@@ -13,69 +13,51 @@
+  * limitations under the License.
+  */
+ 
+-#include "PasteEEPage.h"
+-#include "ui_PasteEEPage.h"
++#include "PastePage.h"
++#include "ui_PastePage.h"
+ 
+ #include <QMessageBox>
+ #include <QFileDialog>
+ #include <QStandardPaths>
+ #include <QTabBar>
++#include <QVariant>
+ 
+ #include "settings/SettingsObject.h"
+ #include "tools/BaseProfiler.h"
+ #include "Application.h"
+ 
+-PasteEEPage::PasteEEPage(QWidget *parent) :
++PastePage::PastePage(QWidget *parent) :
+     QWidget(parent),
+-    ui(new Ui::PasteEEPage)
++    ui(new Ui::PastePage)
+ {
++    static QRegularExpression validUrlRegExp("https?://.+");
+     ui->setupUi(this);
++    ui->urlChoices->setValidator(new QRegularExpressionValidator(validUrlRegExp, ui->urlChoices));
+     ui->tabWidget->tabBar()->hide();\
+-    connect(ui->customAPIkeyEdit, &QLineEdit::textEdited, this, &PasteEEPage::textEdited);
+     loadSettings();
+ }
+ 
+-PasteEEPage::~PasteEEPage()
++PastePage::~PastePage()
+ {
+     delete ui;
+ }
+ 
+-void PasteEEPage::loadSettings()
++void PastePage::loadSettings()
+ {
+     auto s = APPLICATION->settings();
+-    QString keyToUse = s->get("PasteEEAPIKey").toString();
+-    if(keyToUse == "multimc")
+-    {
+-        ui->multimcButton->setChecked(true);
+-    }
+-    else
+-    {
+-        ui->customButton->setChecked(true);
+-        ui->customAPIkeyEdit->setText(keyToUse);
+-    }
++    QString pastebinURL = s->get("PastebinURL").toString();
++    ui->urlChoices->setCurrentText(pastebinURL);
+ }
+ 
+-void PasteEEPage::applySettings()
++void PastePage::applySettings()
+ {
+     auto s = APPLICATION->settings();
+-
+-    QString pasteKeyToUse;
+-    if (ui->customButton->isChecked())
+-        pasteKeyToUse = ui->customAPIkeyEdit->text();
+-    else
+-    {
+-        pasteKeyToUse =  "multimc";
+-    }
+-    s->set("PasteEEAPIKey", pasteKeyToUse);
++    QString pastebinURL = ui->urlChoices->currentText();
++    s->set("PastebinURL", pastebinURL);
+ }
+ 
+-bool PasteEEPage::apply()
++bool PastePage::apply()
+ {
+     applySettings();
+     return true;
+ }
+-
+-void PasteEEPage::textEdited(const QString& text)
+-{
+-    ui->customButton->setChecked(true);
+-}
+diff --git a/launcher/ui/pages/global/PasteEEPage.h b/launcher/ui/pages/global/PastePage.h
+similarity index 84%
+rename from launcher/ui/pages/global/PasteEEPage.h
+rename to launcher/ui/pages/global/PastePage.h
+index a1c7d434..d475dfd9 100644
+--- a/launcher/ui/pages/global/PasteEEPage.h
++++ b/launcher/ui/pages/global/PastePage.h
+@@ -21,16 +21,16 @@
+ #include <Application.h>
+ 
+ namespace Ui {
+-class PasteEEPage;
++class PastePage;
+ }
+ 
+-class PasteEEPage : public QWidget, public BasePage
++class PastePage : public QWidget, public BasePage
+ {
+     Q_OBJECT
+ 
+ public:
+-    explicit PasteEEPage(QWidget *parent = 0);
+-    ~PasteEEPage();
++    explicit PastePage(QWidget *parent = 0);
++    ~PastePage();
+ 
+     QString displayName() const override
+     {
+@@ -54,9 +54,7 @@ private:
+     void loadSettings();
+     void applySettings();
+ 
+-private slots:
+-    void textEdited(const QString &text);
+-
+ private:
+-    Ui::PasteEEPage *ui;
++    Ui::PastePage *ui;
+ };
++
+diff --git a/launcher/ui/pages/global/PasteEEPage.ui b/launcher/ui/pages/global/PastePage.ui
+similarity index 61%
+rename from launcher/ui/pages/global/PasteEEPage.ui
+rename to launcher/ui/pages/global/PastePage.ui
+index 10883781..2d13a765 100644
+--- a/launcher/ui/pages/global/PasteEEPage.ui
++++ b/launcher/ui/pages/global/PastePage.ui
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <ui version="4.0">
+- <class>PasteEEPage</class>
+- <widget class="QWidget" name="PasteEEPage">
++ <class>PastePage</class>
++ <widget class="QWidget" name="PastePage">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+@@ -36,39 +36,9 @@
+        <item>
+         <widget class="QGroupBox" name="groupBox_2">
+          <property name="title">
+-          <string>paste.ee API key</string>
++          <string>Pastebin URL</string>
+          </property>
+-         <layout class="QVBoxLayout" name="verticalLayout_10">
+-          <item>
+-           <widget class="QRadioButton" name="multimcButton">
+-            <property name="text">
+-             <string>MultiMC key - 12MB &amp;upload limit</string>
+-            </property>
+-            <attribute name="buttonGroup">
+-             <string notr="true">pasteButtonGroup</string>
+-            </attribute>
+-           </widget>
+-          </item>
+-          <item>
+-           <widget class="QRadioButton" name="customButton">
+-            <property name="text">
+-             <string>&amp;Your own key - 12MB upload limit:</string>
+-            </property>
+-            <attribute name="buttonGroup">
+-             <string notr="true">pasteButtonGroup</string>
+-            </attribute>
+-           </widget>
+-          </item>
+-          <item>
+-           <widget class="QLineEdit" name="customAPIkeyEdit">
+-            <property name="echoMode">
+-             <enum>QLineEdit::Password</enum>
+-            </property>
+-            <property name="placeholderText">
+-             <string>Paste your API key here!</string>
+-            </property>
+-           </widget>
+-          </item>
++         <layout class="QVBoxLayout" name="verticalLayout_3">
+           <item>
+            <widget class="Line" name="line">
+             <property name="orientation">
+@@ -76,10 +46,45 @@
+             </property>
+            </widget>
+           </item>
++          <item>
++           <widget class="QLabel" name="label_2">
++            <property name="font">
++             <font>
++              <pointsize>10</pointsize>
++             </font>
++            </property>
++            <property name="text">
++             <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Note: only input that starts with &lt;span style=&quot; font-weight:600;&quot;&gt;http://&lt;/span&gt; or &lt;span style=&quot; font-weight:600;&quot;&gt;https://&lt;/span&gt; will be accepted.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
++            </property>
++            <property name="scaledContents">
++             <bool>false</bool>
++            </property>
++           </widget>
++          </item>
++          <item>
++           <widget class="QComboBox" name="urlChoices">
++            <property name="editable">
++             <bool>true</bool>
++            </property>
++            <property name="insertPolicy">
++             <enum>QComboBox::NoInsert</enum>
++            </property>
++            <item>
++             <property name="text">
++              <string>https://0x0.st</string>
++             </property>
++            </item>
++            <item>
++             <property name="text">
++              <string>https://paste.polymc.org</string>
++             </property>
++            </item>
++           </widget>
++          </item>
+           <item>
+            <widget class="QLabel" name="label">
+             <property name="text">
+-             <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://paste.ee&quot;&gt;paste.ee&lt;/a&gt; is used by MultiMC for log uploads. If you have a &lt;a href=&quot;https://paste.ee&quot;&gt;paste.ee&lt;/a&gt; account, you can add your API key here and have your uploaded logs paired with your account.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
++             <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Here you can choose from a predefined list of paste services, or input the URL of a different paste service of your choice, provided it supports the same protocol as 0x0.st, that is POST a file parameter to the URL and return a link in the response body.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+             </property>
+             <property name="textFormat">
+              <enum>Qt::RichText</enum>
+@@ -116,13 +121,7 @@
+  </widget>
+  <tabstops>
+   <tabstop>tabWidget</tabstop>
+-  <tabstop>multimcButton</tabstop>
+-  <tabstop>customButton</tabstop>
+-  <tabstop>customAPIkeyEdit</tabstop>
+  </tabstops>
+  <resources/>
+  <connections/>
+- <buttongroups>
+-  <buttongroup name="pasteButtonGroup"/>
+- </buttongroups>
+ </ui>
+diff --git a/launcher/ui/pages/instance/LogPage.ui b/launcher/ui/pages/instance/LogPage.ui
+index ccfc1551..31bb368c 100644
+--- a/launcher/ui/pages/instance/LogPage.ui
++++ b/launcher/ui/pages/instance/LogPage.ui
+@@ -100,7 +100,7 @@
+          <item>
+           <widget class="QPushButton" name="btnPaste">
+            <property name="toolTip">
+-            <string>Upload the log to paste.ee - it will stay online for a month</string>
++            <string>Upload the log to the paste service configured in preferences</string>
+            </property>
+            <property name="text">
+             <string>Upload</string>
+diff --git a/launcher/ui/pages/instance/OtherLogsPage.ui b/launcher/ui/pages/instance/OtherLogsPage.ui
+index 56ff3b62..77f3e647 100644
+--- a/launcher/ui/pages/instance/OtherLogsPage.ui
++++ b/launcher/ui/pages/instance/OtherLogsPage.ui
+@@ -84,7 +84,7 @@
+          <item row="3" column="2">
+           <widget class="QPushButton" name="btnPaste">
+            <property name="toolTip">
+-            <string>Upload the log to paste.ee - it will stay online for a month</string>
++            <string>Upload the log to the paste service configured in preferences.</string>
+            </property>
+            <property name="text">
+             <string>Upload</string>
+diff --git a/launcher/ui/widgets/LanguageSelectionWidget.cpp b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+index cf70c7b4..fc089f26 100644
+--- a/launcher/ui/widgets/LanguageSelectionWidget.cpp
++++ b/launcher/ui/widgets/LanguageSelectionWidget.cpp
+@@ -5,6 +5,7 @@
+ #include <QHeaderView>
+ #include <QLabel>
+ #include "Application.h"
++#include "BuildConfig.h"
+ #include "translations/TranslationsModel.h"
+ 
+ LanguageSelectionWidget::LanguageSelectionWidget(QWidget *parent) :
+@@ -48,7 +49,7 @@ QString LanguageSelectionWidget::getSelectedLanguageKey() const
+ void LanguageSelectionWidget::retranslate()
+ {
+     QString text = tr("Don't see your language or the quality is poor?<br/><a href=\"%1\">Help us with translations!</a>")
+-        .arg("https://github.com/MultiMC/Launcher/wiki/Translating-MultiMC");
++        .arg(BuildConfig.TRANSLATIONS_URL);
+     helpUsLabel->setText(text);
+ 
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..f2047c50bd26
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,37 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.0.6
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later,
+ MIT, BSD-3-Clause, BSD-2-Clause"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/PolyMC/quazip/archive/${_quazipversion}.tar.gz"
+checksum="78c7b24c6895a37f45f563b88cf0ad5cf26dd66264383ed77909e66065df9ea6
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir libraries/libnbtplusplus
+	rmdir libraries/quazip
+	mv ../libnbtplusplus-${_nbtversion} libraries/libnbtplusplus
+	mv ../quazip-${_quazipversion} libraries/quazip
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (27 preceding siblings ...)
  2022-02-26  9:40 ` [PR PATCH] [Updated] " oynqr
@ 2022-02-26  9:43 ` oynqr
  2022-02-26 14:34 ` classabbyamp
                   ` (47 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-26  9:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r815291994

Comment:
Alright, will keep it at 11 for now as long as `java-environment` points to 11.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (28 preceding siblings ...)
  2022-02-26  9:43 ` [PR REVIEW] " oynqr
@ 2022-02-26 14:34 ` classabbyamp
  2022-02-26 15:56 ` oynqr
                   ` (46 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: classabbyamp @ 2022-02-26 14:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r815316948

Comment:
either way, it should be runtime because you don't need the jdk to run it, you need the runtime. jdk11 doesn't split it into a subpkg for whatever reason but it still provides runtime and environment

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (29 preceding siblings ...)
  2022-02-26 14:34 ` classabbyamp
@ 2022-02-26 15:56 ` oynqr
  2022-03-12 16:44 ` [PR PATCH] [Updated] " oynqr
                   ` (45 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-02-26 15:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r815325749

Comment:
I already changed it.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.0.6
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (30 preceding siblings ...)
  2022-02-26 15:56 ` oynqr
@ 2022-03-12 16:44 ` oynqr
  2022-03-13 17:18 ` [PR PATCH] [Updated] New package: PolyMC-1.1.0 oynqr
                   ` (44 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-12 16:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.0.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 1819 bytes --]

From 51fa3d18fefec4f07de948f8360dc599cf250f71 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.0

---
 srcpkgs/PolyMC/template | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..a566c0445288
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,36 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.0
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="09ec1d10c6d627f895109b21728dda000cbfa7d1"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-or-later"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/stachenov/quazip/archive/${_quazipversion}.tar.gz"
+checksum="4114b11a47a5380c811df890310578ddb3457f0a96caf019f388e1f551d58e99
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 618700e4e5f1f884e22bc8ed2c2c102305711ebf5a39296bf4c6017a4e6d4e35"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir libraries/libnbtplusplus
+	rmdir libraries/quazip
+	mv ../libnbtplusplus-${_nbtversion} libraries/libnbtplusplus
+	mv ../quazip-${_quazipversion} libraries/quazip
+}
+
+post_install() {
+	vlicense COPYING.md
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (31 preceding siblings ...)
  2022-03-12 16:44 ` [PR PATCH] [Updated] " oynqr
@ 2022-03-13 17:18 ` oynqr
  2022-03-13 17:30 ` oynqr
                   ` (43 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-13 17:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 1810 bytes --]

From 2c0ed4f9ffc9d915394729bb32b9c79a92e04bf3 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.0

---
 srcpkgs/PolyMC/template | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..f1ddeabffa53
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,33 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.0
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="09ec1d10c6d627f895109b21728dda000cbfa7d1"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-or-later"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/stachenov/quazip/archive/${_quazipversion}.tar.gz"
+checksum="4114b11a47a5380c811df890310578ddb3457f0a96caf019f388e1f551d58e99
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 618700e4e5f1f884e22bc8ed2c2c102305711ebf5a39296bf4c6017a4e6d4e35"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir libraries/libnbtplusplus
+	rmdir libraries/quazip
+	mv ../libnbtplusplus-${_nbtversion} libraries/libnbtplusplus
+	mv ../quazip-${_quazipversion} libraries/quazip
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (32 preceding siblings ...)
  2022-03-13 17:18 ` [PR PATCH] [Updated] New package: PolyMC-1.1.0 oynqr
@ 2022-03-13 17:30 ` oynqr
  2022-03-13 19:08 ` [PR REVIEW] " Johnnynator
                   ` (42 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-13 17:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 3003 bytes --]

From feb7072e42be10b7f5ffae2979e92e91b072d432 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.0

---
 srcpkgs/PolyMC/patches/00-fix-version.patch | 24 +++++++++++++++
 srcpkgs/PolyMC/template                     | 33 +++++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-version.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/patches/00-fix-version.patch b/srcpkgs/PolyMC/patches/00-fix-version.patch
new file mode 100644
index 000000000000..4781b92c567e
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-version.patch
@@ -0,0 +1,24 @@
+--- a/buildconfig/BuildConfig.cpp.in
++++ b/buildconfig/BuildConfig.cpp.in
+@@ -30,7 +30,11 @@ Config::Config()
+ 
+     GIT_COMMIT = "@Launcher_GIT_COMMIT@";
+     GIT_REFSPEC = "@Launcher_GIT_REFSPEC@";
+-    if(GIT_REFSPEC.startsWith("refs/heads/"))
++    if (GIT_REFSPEC.startsWith("GITDIR-NOTFOUND"))
++    {
++        VERSION_CHANNEL = "stable";
++    }
++    else if(GIT_REFSPEC.startsWith("refs/heads/"))
+     {
+         VERSION_CHANNEL = GIT_REFSPEC;
+         VERSION_CHANNEL.remove("refs/heads/");
+@@ -75,7 +79,7 @@ QString Config::printableVersionString() const
+     // if a build number is set, also add it to the end
+     if(VERSION_BUILD >= 0)
+     {
+-        vstr += "-" + QString::number(VERSION_BUILD);
++        vstr += "_" + QString::number(VERSION_BUILD);
+     }
+     return vstr;
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..f1ddeabffa53
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,33 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.0
+revision=1
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="09ec1d10c6d627f895109b21728dda000cbfa7d1"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-or-later"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/stachenov/quazip/archive/${_quazipversion}.tar.gz"
+checksum="4114b11a47a5380c811df890310578ddb3457f0a96caf019f388e1f551d58e99
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 618700e4e5f1f884e22bc8ed2c2c102305711ebf5a39296bf4c6017a4e6d4e35"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir libraries/libnbtplusplus
+	rmdir libraries/quazip
+	mv ../libnbtplusplus-${_nbtversion} libraries/libnbtplusplus
+	mv ../quazip-${_quazipversion} libraries/quazip
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (33 preceding siblings ...)
  2022-03-13 17:30 ` oynqr
@ 2022-03-13 19:08 ` Johnnynator
  2022-03-13 21:34 ` oynqr
                   ` (41 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: Johnnynator @ 2022-03-13 19:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

New review comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r825491062

Comment:
This is a bad issue to list as justification.

We a) either disable builds for everything except `x86_64` (and maybe `i686`) or b) keep them for non `x86_64` and keep it as an exercise for the user to replace the native x86_64 libs in Minecraft with usable ones for their system.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (34 preceding siblings ...)
  2022-03-13 19:08 ` [PR REVIEW] " Johnnynator
@ 2022-03-13 21:34 ` oynqr
  2022-03-14  8:38 ` [PR PATCH] [Updated] " oynqr
                   ` (40 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-13 21:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r825507001

Comment:
The issue states how MultiMC compilation itself fails for armv* with gcc. It still does to this day, even with PolyMC. I will remove it if/when toolchain updates fix it.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (35 preceding siblings ...)
  2022-03-13 21:34 ` oynqr
@ 2022-03-14  8:38 ` oynqr
  2022-03-14  9:19 ` oynqr
                   ` (39 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-14  8:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 3108 bytes --]

From a44a2835eb84c00b965307d7fc42eda1b7ab4d47 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.0

---
 srcpkgs/PolyMC/patches/00-fix-version.patch | 24 ++++++++++++++
 srcpkgs/PolyMC/template                     | 36 +++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-version.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/patches/00-fix-version.patch b/srcpkgs/PolyMC/patches/00-fix-version.patch
new file mode 100644
index 000000000000..4781b92c567e
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-version.patch
@@ -0,0 +1,24 @@
+--- a/buildconfig/BuildConfig.cpp.in
++++ b/buildconfig/BuildConfig.cpp.in
+@@ -30,7 +30,11 @@ Config::Config()
+ 
+     GIT_COMMIT = "@Launcher_GIT_COMMIT@";
+     GIT_REFSPEC = "@Launcher_GIT_REFSPEC@";
+-    if(GIT_REFSPEC.startsWith("refs/heads/"))
++    if (GIT_REFSPEC.startsWith("GITDIR-NOTFOUND"))
++    {
++        VERSION_CHANNEL = "stable";
++    }
++    else if(GIT_REFSPEC.startsWith("refs/heads/"))
+     {
+         VERSION_CHANNEL = GIT_REFSPEC;
+         VERSION_CHANNEL.remove("refs/heads/");
+@@ -75,7 +79,7 @@ QString Config::printableVersionString() const
+     // if a build number is set, also add it to the end
+     if(VERSION_BUILD >= 0)
+     {
+-        vstr += "-" + QString::number(VERSION_BUILD);
++        vstr += "_" + QString::number(VERSION_BUILD);
+     }
+     return vstr;
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..3aa3e6cf270d
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,36 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.0
+revision=1
+create_wrksrc=yes
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="09ec1d10c6d627f895109b21728dda000cbfa7d1"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-or-later"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/stachenov/quazip/archive/${_quazipversion}.tar.gz"
+checksum="4114b11a47a5380c811df890310578ddb3457f0a96caf019f388e1f551d58e99
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 618700e4e5f1f884e22bc8ed2c2c102305711ebf5a39296bf4c6017a4e6d4e35"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	find PolyMC-${version}/ -mindepth 1 -maxdepth 1 -exec mv {} . \;
+	rmdir PolyMC-${version}
+	rmdir libraries/libnbtplusplus
+	rmdir libraries/quazip
+	mv libnbtplusplus-${_nbtversion} libraries/libnbtplusplus
+	mv quazip-${_quazipversion} libraries/quazip
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (36 preceding siblings ...)
  2022-03-14  8:38 ` [PR PATCH] [Updated] " oynqr
@ 2022-03-14  9:19 ` oynqr
  2022-03-14  9:51 ` [PR REVIEW] " paper42
                   ` (38 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-14  9:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

New comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1066550171

Comment:
> Because this has multiple distfiles, please use create_wrksrc.

Done.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (37 preceding siblings ...)
  2022-03-14  9:19 ` oynqr
@ 2022-03-14  9:51 ` paper42
  2022-03-14 20:04 ` oynqr
                   ` (37 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: paper42 @ 2022-03-14  9:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r825763559

Comment:
Use `build_wrksrc` instead please.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (38 preceding siblings ...)
  2022-03-14  9:51 ` [PR REVIEW] " paper42
@ 2022-03-14 20:04 ` oynqr
  2022-03-14 20:13 ` paper42
                   ` (36 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-14 20:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r826332342

Comment:
How would I go about doing that without breaking the patch?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (39 preceding siblings ...)
  2022-03-14 20:04 ` oynqr
@ 2022-03-14 20:13 ` paper42
  2022-03-14 21:45 ` oynqr
                   ` (35 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: paper42 @ 2022-03-14 20:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r826338901

Comment:
Hmm, probably something like `patch_args="-d $build_wrksrc"`

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (40 preceding siblings ...)
  2022-03-14 20:13 ` paper42
@ 2022-03-14 21:45 ` oynqr
  2022-03-14 22:36 ` classabbyamp
                   ` (34 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-14 21:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 221 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r826406557

Comment:
That also breaks since the patch is copied to and referenced from $wrksrc...

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (41 preceding siblings ...)
  2022-03-14 21:45 ` oynqr
@ 2022-03-14 22:36 ` classabbyamp
  2022-03-15  6:46 ` oynqr
                   ` (33 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: classabbyamp @ 2022-03-14 22:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r826435126

Comment:
I solved this in #35591 by adding build_wrksrc to the path in the patch. not ideal at all but it works, I guess

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (42 preceding siblings ...)
  2022-03-14 22:36 ` classabbyamp
@ 2022-03-15  6:46 ` oynqr
  2022-03-15  6:49 ` [PR PATCH] [Updated] " oynqr
                   ` (32 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-15  6:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r826626664

Comment:
I suppose that will work, since I will try to get the GITDIR-NOTFOUND detection upstreamed and the other change is ideal for vsed.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (43 preceding siblings ...)
  2022-03-15  6:46 ` oynqr
@ 2022-03-15  6:49 ` oynqr
  2022-03-15 16:16 ` [PR REVIEW] " DioEgizio
                   ` (31 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-15  6:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 3156 bytes --]

From 0275172a5d489b0f97f887eb5d1b97e5a79d570f Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.0

---
 srcpkgs/PolyMC/patches/00-fix-version.patch | 24 +++++++++++++
 srcpkgs/PolyMC/template                     | 37 +++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-version.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/patches/00-fix-version.patch b/srcpkgs/PolyMC/patches/00-fix-version.patch
new file mode 100644
index 000000000000..d29a5fe77ee4
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-version.patch
@@ -0,0 +1,24 @@
+--- a/PolyMC-1.1.0/buildconfig/BuildConfig.cpp.in
++++ b/PolyMC-1.1.0/buildconfig/BuildConfig.cpp.in
+@@ -30,7 +30,11 @@ Config::Config()
+ 
+     GIT_COMMIT = "@Launcher_GIT_COMMIT@";
+     GIT_REFSPEC = "@Launcher_GIT_REFSPEC@";
+-    if(GIT_REFSPEC.startsWith("refs/heads/"))
++    if (GIT_REFSPEC.startsWith("GITDIR-NOTFOUND"))
++    {
++        VERSION_CHANNEL = "stable";
++    }
++    else if(GIT_REFSPEC.startsWith("refs/heads/"))
+     {
+         VERSION_CHANNEL = GIT_REFSPEC;
+         VERSION_CHANNEL.remove("refs/heads/");
+@@ -75,7 +79,7 @@ QString Config::printableVersionString() const
+     // if a build number is set, also add it to the end
+     if(VERSION_BUILD >= 0)
+     {
+-        vstr += "-" + QString::number(VERSION_BUILD);
++        vstr += "_" + QString::number(VERSION_BUILD);
+     }
+     return vstr;
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..70a027356584
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,37 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.0
+revision=1
+create_wrksrc=yes
+build_wrksrc="PolyMC-${version}"
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="09ec1d10c6d627f895109b21728dda000cbfa7d1"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-or-later"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/stachenov/quazip/archive/${_quazipversion}.tar.gz"
+checksum="4114b11a47a5380c811df890310578ddb3457f0a96caf019f388e1f551d58e99
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 618700e4e5f1f884e22bc8ed2c2c102305711ebf5a39296bf4c6017a4e6d4e35"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir PolyMC-${version}/libraries/libnbtplusplus
+	rmdir PolyMC-${version}/libraries/quazip
+	mv libnbtplusplus-${_nbtversion} \
+		PolyMC-${version}/libraries/libnbtplusplus
+	mv quazip-${_quazipversion} \
+		PolyMC-${version}/libraries/quazip
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (44 preceding siblings ...)
  2022-03-15  6:49 ` [PR PATCH] [Updated] " oynqr
@ 2022-03-15 16:16 ` DioEgizio
  2022-03-15 17:06 ` oynqr
                   ` (30 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: DioEgizio @ 2022-03-15 16:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

New review comment by DioEgizio on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r827165896

Comment:
It's GPL-3.0-only

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (45 preceding siblings ...)
  2022-03-15 16:16 ` [PR REVIEW] " DioEgizio
@ 2022-03-15 17:06 ` oynqr
  2022-03-15 17:40 ` sug0
                   ` (29 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-15 17:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r827218491

Comment:
I'll change it when it gets merged.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (46 preceding siblings ...)
  2022-03-15 17:06 ` oynqr
@ 2022-03-15 17:40 ` sug0
  2022-03-15 17:41 ` DioEgizio
                   ` (28 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: sug0 @ 2022-03-15 17:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

New comment by sug0 on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1068266843

Comment:
@oynqr Please consider my suggestion of changing the runtime dependency from `virtual?java-environment` to `openjdk17-jre`. The virtual package `java-environment` points to `openjdk11`, while newer versions of Minecraft require Java versions as recent as JRE 16.

Perhaps an even more prudent solution would be to remove all Java runtime deps, and instead add an INSTALL message recommending the user to install some Java vm. PolyMC can be used to manage an arbitrarily large matrix of Minecraft instances, which can depend on Java versions as old as JRE 8.

Cheers.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (47 preceding siblings ...)
  2022-03-15 17:40 ` sug0
@ 2022-03-15 17:41 ` DioEgizio
  2022-03-15 22:40 ` [PR REVIEW] " paper42
                   ` (27 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: DioEgizio @ 2022-03-15 17:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

New comment by DioEgizio on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1068267962

Comment:
At runtime you should have *both* jre8 and jre17

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (48 preceding siblings ...)
  2022-03-15 17:41 ` DioEgizio
@ 2022-03-15 22:40 ` paper42
  2022-03-16  7:53 ` oynqr
                   ` (26 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: paper42 @ 2022-03-15 22:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r827473358

Comment:
> I'll change it when it gets merged.

We need to specify the correct license **before** this PR is merged.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (49 preceding siblings ...)
  2022-03-15 22:40 ` [PR REVIEW] " paper42
@ 2022-03-16  7:53 ` oynqr
  2022-03-16  7:55 ` paper42
                   ` (25 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-16  7:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r827714151

Comment:
Sorry, bad wording. I'll change it when the license gets merged upstream. https://github.com/PolyMC/PolyMC/pull/278

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (50 preceding siblings ...)
  2022-03-16  7:53 ` oynqr
@ 2022-03-16  7:55 ` paper42
  2022-03-16  7:59 ` oynqr
                   ` (24 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: paper42 @ 2022-03-16  7:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r827715525

Comment:
Oh, I get it now. We will change it with the next version if the PR is merged there.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (51 preceding siblings ...)
  2022-03-16  7:55 ` paper42
@ 2022-03-16  7:59 ` oynqr
  2022-03-16  8:09 ` [PR REVIEW] " oynqr
                   ` (23 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-16  7:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

New comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1068837366

Comment:
I am leaning towards changing the dependency to openjdk17-jre and adding a README.voidlinux telling people the correct version of java to install for older Minecraft.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (52 preceding siblings ...)
  2022-03-16  7:59 ` oynqr
@ 2022-03-16  8:09 ` oynqr
  2022-03-16  9:32 ` [PR PATCH] [Updated] " oynqr
                   ` (22 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-16  8:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r827725735

Comment:
The change has been upstreamed.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (53 preceding siblings ...)
  2022-03-16  8:09 ` [PR REVIEW] " oynqr
@ 2022-03-16  9:32 ` oynqr
  2022-03-16 13:01 ` classabbyamp
                   ` (21 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-16  9:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 3835 bytes --]

From 9d774370f5cbb8ceb6fca97891fd9b2263c2701b Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.0

---
 srcpkgs/PolyMC/files/README.voidlinux       |  6 +++
 srcpkgs/PolyMC/patches/00-fix-version.patch | 24 ++++++++++++
 srcpkgs/PolyMC/template                     | 41 +++++++++++++++++++++
 3 files changed, 71 insertions(+)
 create mode 100644 srcpkgs/PolyMC/files/README.voidlinux
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-version.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/files/README.voidlinux b/srcpkgs/PolyMC/files/README.voidlinux
new file mode 100644
index 000000000000..cd119f8abb36
--- /dev/null
+++ b/srcpkgs/PolyMC/files/README.voidlinux
@@ -0,0 +1,6 @@
+Void-specific instructions:
+============================
+
+This package only depends on openjdk17-jre, which is fine for Minecraft version
+1.17 and newer. To run older Minecraft versions, install openjdk8-jre and make
+sure to select the correct Java version in PolyMC.
diff --git a/srcpkgs/PolyMC/patches/00-fix-version.patch b/srcpkgs/PolyMC/patches/00-fix-version.patch
new file mode 100644
index 000000000000..7513f6bffec9
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-version.patch
@@ -0,0 +1,24 @@
+--- a/PolyMC-1.1.0/buildconfig/BuildConfig.cpp.in
++++ b/PolyMC-1.1.0/buildconfig/BuildConfig.cpp.in
+@@ -30,7 +30,11 @@ Config::Config()
+ 
+     GIT_COMMIT = "@Launcher_GIT_COMMIT@";
+     GIT_REFSPEC = "@Launcher_GIT_REFSPEC@";
+-    if(GIT_REFSPEC.startsWith("refs/heads/"))
++    if (GIT_REFSPEC == QStringLiteral("GITDIR-NOTFOUND"))
++    {
++        VERSION_CHANNEL = QStringLiteral("stable");
++    }
++    else if(GIT_REFSPEC.startsWith("refs/heads/"))
+     {
+         VERSION_CHANNEL = GIT_REFSPEC;
+         VERSION_CHANNEL.remove("refs/heads/");
+@@ -75,7 +79,7 @@ QString Config::printableVersionString() const
+     // if a build number is set, also add it to the end
+     if(VERSION_BUILD >= 0)
+     {
+-        vstr += "-" + QString::number(VERSION_BUILD);
++        vstr += "_" + QString::number(VERSION_BUILD);
+     }
+     return vstr;
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..516ac4e16e13
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,41 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.0
+revision=1
+create_wrksrc=yes
+build_wrksrc="PolyMC-${version}"
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="09ec1d10c6d627f895109b21728dda000cbfa7d1"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="openjdk17-jre"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-or-later"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/stachenov/quazip/archive/${_quazipversion}.tar.gz"
+checksum="4114b11a47a5380c811df890310578ddb3457f0a96caf019f388e1f551d58e99
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 618700e4e5f1f884e22bc8ed2c2c102305711ebf5a39296bf4c6017a4e6d4e35"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir PolyMC-${version}/libraries/libnbtplusplus
+	rmdir PolyMC-${version}/libraries/quazip
+	mv libnbtplusplus-${_nbtversion} \
+		PolyMC-${version}/libraries/libnbtplusplus
+	mv quazip-${_quazipversion} \
+		PolyMC-${version}/libraries/quazip
+}
+
+post_install() {
+	vdoc ${FILESDIR}/README.voidlinux
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (54 preceding siblings ...)
  2022-03-16  9:32 ` [PR PATCH] [Updated] " oynqr
@ 2022-03-16 13:01 ` classabbyamp
  2022-03-16 15:53 ` [PR PATCH] [Updated] " oynqr
                   ` (20 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: classabbyamp @ 2022-03-16 13:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1069102124

Comment:
@sug0, the virtual package points to jre8 by default, not 11: https://github.com/void-linux/void-packages/blob/master/etc/defaults.virtual#L25

this package should have `depends="virtual?java-runtime"`, not any specific version. Maybe it would be good to still have an install message or README.voidlinux that says jre17 may be required for new versions. 

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (55 preceding siblings ...)
  2022-03-16 13:01 ` classabbyamp
@ 2022-03-16 15:53 ` oynqr
  2022-03-16 16:17 ` [PR REVIEW] " DioEgizio
                   ` (19 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-16 15:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 3820 bytes --]

From f9362d319f0ba1bda891e58b425564afb8bfec73 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.0

---
 srcpkgs/PolyMC/files/README.voidlinux       |  6 +++
 srcpkgs/PolyMC/patches/00-fix-version.patch | 24 ++++++++++++
 srcpkgs/PolyMC/template                     | 41 +++++++++++++++++++++
 3 files changed, 71 insertions(+)
 create mode 100644 srcpkgs/PolyMC/files/README.voidlinux
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-version.patch
 create mode 100644 srcpkgs/PolyMC/template

diff --git a/srcpkgs/PolyMC/files/README.voidlinux b/srcpkgs/PolyMC/files/README.voidlinux
new file mode 100644
index 000000000000..16ee7f91717b
--- /dev/null
+++ b/srcpkgs/PolyMC/files/README.voidlinux
@@ -0,0 +1,6 @@
+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.
diff --git a/srcpkgs/PolyMC/patches/00-fix-version.patch b/srcpkgs/PolyMC/patches/00-fix-version.patch
new file mode 100644
index 000000000000..7513f6bffec9
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-version.patch
@@ -0,0 +1,24 @@
+--- a/PolyMC-1.1.0/buildconfig/BuildConfig.cpp.in
++++ b/PolyMC-1.1.0/buildconfig/BuildConfig.cpp.in
+@@ -30,7 +30,11 @@ Config::Config()
+ 
+     GIT_COMMIT = "@Launcher_GIT_COMMIT@";
+     GIT_REFSPEC = "@Launcher_GIT_REFSPEC@";
+-    if(GIT_REFSPEC.startsWith("refs/heads/"))
++    if (GIT_REFSPEC == QStringLiteral("GITDIR-NOTFOUND"))
++    {
++        VERSION_CHANNEL = QStringLiteral("stable");
++    }
++    else if(GIT_REFSPEC.startsWith("refs/heads/"))
+     {
+         VERSION_CHANNEL = GIT_REFSPEC;
+         VERSION_CHANNEL.remove("refs/heads/");
+@@ -75,7 +79,7 @@ QString Config::printableVersionString() const
+     // if a build number is set, also add it to the end
+     if(VERSION_BUILD >= 0)
+     {
+-        vstr += "-" + QString::number(VERSION_BUILD);
++        vstr += "_" + QString::number(VERSION_BUILD);
+     }
+     return vstr;
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..bce839cdc2ed
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,41 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.0
+revision=1
+create_wrksrc=yes
+build_wrksrc="PolyMC-${version}"
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="09ec1d10c6d627f895109b21728dda000cbfa7d1"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-or-later"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/stachenov/quazip/archive/${_quazipversion}.tar.gz"
+checksum="4114b11a47a5380c811df890310578ddb3457f0a96caf019f388e1f551d58e99
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 618700e4e5f1f884e22bc8ed2c2c102305711ebf5a39296bf4c6017a4e6d4e35"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir PolyMC-${version}/libraries/libnbtplusplus
+	rmdir PolyMC-${version}/libraries/quazip
+	mv libnbtplusplus-${_nbtversion} \
+		PolyMC-${version}/libraries/libnbtplusplus
+	mv quazip-${_quazipversion} \
+		PolyMC-${version}/libraries/quazip
+}
+
+post_install() {
+	vdoc ${FILESDIR}/README.voidlinux
+}

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (56 preceding siblings ...)
  2022-03-16 15:53 ` [PR PATCH] [Updated] " oynqr
@ 2022-03-16 16:17 ` DioEgizio
  2022-03-20 20:18 ` [PR PATCH] [Updated] " oynqr
                   ` (18 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: DioEgizio @ 2022-03-16 16:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

New review comment by DioEgizio on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r828180683

Comment:
> I'll change it when it gets merged.

it is now 

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (57 preceding siblings ...)
  2022-03-16 16:17 ` [PR REVIEW] " DioEgizio
@ 2022-03-20 20:18 ` oynqr
  2022-03-24 16:04 ` DioEgizio
                   ` (17 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-03-20 20:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 4169 bytes --]

From 258954f062450088bf208ddc2caea9046b6c0504 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.0

---
 srcpkgs/PolyMC/files/README.voidlinux       |  6 +++
 srcpkgs/PolyMC/patches/00-fix-version.patch | 24 ++++++++++++
 srcpkgs/PolyMC/template                     | 41 +++++++++++++++++++++
 srcpkgs/PolyMC/update                       |  2 +
 4 files changed, 73 insertions(+)
 create mode 100644 srcpkgs/PolyMC/files/README.voidlinux
 create mode 100644 srcpkgs/PolyMC/patches/00-fix-version.patch
 create mode 100644 srcpkgs/PolyMC/template
 create mode 100644 srcpkgs/PolyMC/update

diff --git a/srcpkgs/PolyMC/files/README.voidlinux b/srcpkgs/PolyMC/files/README.voidlinux
new file mode 100644
index 000000000000..16ee7f91717b
--- /dev/null
+++ b/srcpkgs/PolyMC/files/README.voidlinux
@@ -0,0 +1,6 @@
+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.
diff --git a/srcpkgs/PolyMC/patches/00-fix-version.patch b/srcpkgs/PolyMC/patches/00-fix-version.patch
new file mode 100644
index 000000000000..7513f6bffec9
--- /dev/null
+++ b/srcpkgs/PolyMC/patches/00-fix-version.patch
@@ -0,0 +1,24 @@
+--- a/PolyMC-1.1.0/buildconfig/BuildConfig.cpp.in
++++ b/PolyMC-1.1.0/buildconfig/BuildConfig.cpp.in
+@@ -30,7 +30,11 @@ Config::Config()
+ 
+     GIT_COMMIT = "@Launcher_GIT_COMMIT@";
+     GIT_REFSPEC = "@Launcher_GIT_REFSPEC@";
+-    if(GIT_REFSPEC.startsWith("refs/heads/"))
++    if (GIT_REFSPEC == QStringLiteral("GITDIR-NOTFOUND"))
++    {
++        VERSION_CHANNEL = QStringLiteral("stable");
++    }
++    else if(GIT_REFSPEC.startsWith("refs/heads/"))
+     {
+         VERSION_CHANNEL = GIT_REFSPEC;
+         VERSION_CHANNEL.remove("refs/heads/");
+@@ -75,7 +79,7 @@ QString Config::printableVersionString() const
+     // if a build number is set, also add it to the end
+     if(VERSION_BUILD >= 0)
+     {
+-        vstr += "-" + QString::number(VERSION_BUILD);
++        vstr += "_" + QString::number(VERSION_BUILD);
+     }
+     return vstr;
+ }
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..bce839cdc2ed
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,41 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.0
+revision=1
+create_wrksrc=yes
+build_wrksrc="PolyMC-${version}"
+_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464"
+_quazipversion="09ec1d10c6d627f895109b21728dda000cbfa7d1"
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk11 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-or-later"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/archive/${version}.tar.gz
+ https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz
+ https://github.com/stachenov/quazip/archive/${_quazipversion}.tar.gz"
+checksum="4114b11a47a5380c811df890310578ddb3457f0a96caf019f388e1f551d58e99
+ 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595
+ 618700e4e5f1f884e22bc8ed2c2c102305711ebf5a39296bf4c6017a4e6d4e35"
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_extract() {
+	rmdir PolyMC-${version}/libraries/libnbtplusplus
+	rmdir PolyMC-${version}/libraries/quazip
+	mv libnbtplusplus-${_nbtversion} \
+		PolyMC-${version}/libraries/libnbtplusplus
+	mv quazip-${_quazipversion} \
+		PolyMC-${version}/libraries/quazip
+}
+
+post_install() {
+	vdoc ${FILESDIR}/README.voidlinux
+}
diff --git a/srcpkgs/PolyMC/update b/srcpkgs/PolyMC/update
new file mode 100644
index 000000000000..7517baa7a2f7
--- /dev/null
+++ b/srcpkgs/PolyMC/update
@@ -0,0 +1,2 @@
+site=https://github.com/PolyMC/PolyMC/tags
+pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (58 preceding siblings ...)
  2022-03-20 20:18 ` [PR PATCH] [Updated] " oynqr
@ 2022-03-24 16:04 ` DioEgizio
  2022-03-25  1:24 ` [PR REVIEW] " tibequadorian
                   ` (16 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: DioEgizio @ 2022-03-24 16:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

New comment by DioEgizio on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1077790115

Comment:
what's blocking this package from merging?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (59 preceding siblings ...)
  2022-03-24 16:04 ` DioEgizio
@ 2022-03-25  1:24 ` tibequadorian
  2022-03-25 14:08 ` JamiKettunen
                   ` (15 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: tibequadorian @ 2022-03-25  1:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

New review comment by tibequadorian on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r834876661

Comment:
`java-environment` actually points to `openjdk8`

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (60 preceding siblings ...)
  2022-03-25  1:24 ` [PR REVIEW] " tibequadorian
@ 2022-03-25 14:08 ` JamiKettunen
  2022-03-25 14:24 ` [PR REVIEW] " tibequadorian
                   ` (14 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: JamiKettunen @ 2022-03-25 14:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]

New comment by JamiKettunen on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1079054056

Comment:
This should probably print a similar message to steam if there's an  README.voidlinux, I don't think looking for a `README.voidlinux` in output of `xbps-query -f` (or `/usr/share/doc/$pkgname` for that matter) is the first thing users would do if something doesn't work or am I wrong?
```
steam-1.0.0.74_2: post-install message:
========================================================================
Consult /usr/share/doc/steam/README.voidlinux for further installation
instructions and troubleshooting information.
========================================================================
steam-1.0.0.74_2: installed successfully.
```
At some point `java-runtime` and `java-environment` should probably be bumped to JDK 17 since it is the latest LTS release after all, so then installing an older JDK may only be necessary for older MC versions.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (61 preceding siblings ...)
  2022-03-25 14:08 ` JamiKettunen
@ 2022-03-25 14:24 ` tibequadorian
  2022-03-25 14:45 ` tibequadorian
                   ` (13 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: tibequadorian @ 2022-03-25 14:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

New review comment by tibequadorian on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r835319707

Comment:
should be
```suggestion
	rmdir ${build_wrksrc}/libraries/libnbtplusplus
	rmdir ${build_wrksrc}/libraries/quazip
	mv libnbtplusplus-${_nbtversion} \
		${build_wrksrc}/libraries/libnbtplusplus
	mv quazip-${_quazipversion} \
		${build_wrksrc}/libraries/quazip
```
if I'm not mistaken?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (62 preceding siblings ...)
  2022-03-25 14:24 ` [PR REVIEW] " tibequadorian
@ 2022-03-25 14:45 ` tibequadorian
  2022-04-01 20:27 ` [PR PATCH] [Updated] " oynqr
                   ` (12 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: tibequadorian @ 2022-03-25 14:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

New review comment by tibequadorian on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r835319707

Comment:
```suggestion
	rmdir ${build_wrksrc}/libraries/libnbtplusplus
	rmdir ${build_wrksrc}/libraries/quazip
	mv libnbtplusplus-${_nbtversion} \
		${build_wrksrc}/libraries/libnbtplusplus
	mv quazip-${_quazipversion} \
		${build_wrksrc}/libraries/quazip
```
if I'm not mistaken?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.0
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (63 preceding siblings ...)
  2022-03-25 14:45 ` tibequadorian
@ 2022-04-01 20:27 ` oynqr
  2022-04-03 16:05 ` New package: PolyMC-1.1.1 DioEgizio
                   ` (11 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-04-01 20:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 2340 bytes --]

From fe94fb0973b35a29673da4fa6b3f692928963174 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.1

---
 srcpkgs/PolyMC/files/README.voidlinux |  6 ++++++
 srcpkgs/PolyMC/template               | 28 +++++++++++++++++++++++++++
 srcpkgs/PolyMC/update                 |  2 ++
 3 files changed, 36 insertions(+)
 create mode 100644 srcpkgs/PolyMC/files/README.voidlinux
 create mode 100644 srcpkgs/PolyMC/template
 create mode 100644 srcpkgs/PolyMC/update

diff --git a/srcpkgs/PolyMC/files/README.voidlinux b/srcpkgs/PolyMC/files/README.voidlinux
new file mode 100644
index 000000000000..16ee7f91717b
--- /dev/null
+++ b/srcpkgs/PolyMC/files/README.voidlinux
@@ -0,0 +1,6 @@
+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.
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..c41ba6c6e8ab
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,28 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.1
+revision=1
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk8 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime xrandr"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-only"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/releases/download/${version}/PolyMC-${version}.tar.gz"
+checksum=7ade9abc3a6f61ed27a129c10084c783cc9a3266484a53e29dabcc1cbb0ba5c4
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_patch() {
+	vsed -i buildconfig/BuildConfig.cpp.in -e 's/"-" + QString/"_" + QString/'
+}
+
+post_install() {
+	vdoc ${FILESDIR}/README.voidlinux
+}
diff --git a/srcpkgs/PolyMC/update b/srcpkgs/PolyMC/update
new file mode 100644
index 000000000000..7517baa7a2f7
--- /dev/null
+++ b/srcpkgs/PolyMC/update
@@ -0,0 +1,2 @@
+site=https://github.com/PolyMC/PolyMC/tags
+pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (64 preceding siblings ...)
  2022-04-01 20:27 ` [PR PATCH] [Updated] " oynqr
@ 2022-04-03 16:05 ` DioEgizio
  2022-04-04 14:07 ` [PR PATCH] [Updated] " oynqr
                   ` (10 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: DioEgizio @ 2022-04-03 16:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

New comment by DioEgizio on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1086898363

Comment:
what's blocking this package from merging?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (65 preceding siblings ...)
  2022-04-03 16:05 ` New package: PolyMC-1.1.1 DioEgizio
@ 2022-04-04 14:07 ` oynqr
  2022-04-04 17:59 ` oynqr
                   ` (9 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-04-04 14:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 2357 bytes --]

From 2aa2d2c4b579938476ff96482a289c31a94b7433 Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.1

---
 srcpkgs/PolyMC/files/README.voidlinux |  6 ++++++
 srcpkgs/PolyMC/template               | 28 +++++++++++++++++++++++++++
 srcpkgs/PolyMC/update                 |  2 ++
 3 files changed, 36 insertions(+)
 create mode 100644 srcpkgs/PolyMC/files/README.voidlinux
 create mode 100644 srcpkgs/PolyMC/template
 create mode 100644 srcpkgs/PolyMC/update

diff --git a/srcpkgs/PolyMC/files/README.voidlinux b/srcpkgs/PolyMC/files/README.voidlinux
new file mode 100644
index 000000000000..16ee7f91717b
--- /dev/null
+++ b/srcpkgs/PolyMC/files/README.voidlinux
@@ -0,0 +1,6 @@
+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.
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..1ebdfbbde7ab
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,28 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.1
+revision=1
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk8 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime qt5-imageformats xrandr"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-only"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/releases/download/${version}/PolyMC-${version}.tar.gz"
+checksum=7ade9abc3a6f61ed27a129c10084c783cc9a3266484a53e29dabcc1cbb0ba5c4
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_patch() {
+	vsed -i buildconfig/BuildConfig.cpp.in -e 's/"-" + QString/"_" + QString/'
+}
+
+post_install() {
+	vdoc ${FILESDIR}/README.voidlinux
+}
diff --git a/srcpkgs/PolyMC/update b/srcpkgs/PolyMC/update
new file mode 100644
index 000000000000..7517baa7a2f7
--- /dev/null
+++ b/srcpkgs/PolyMC/update
@@ -0,0 +1,2 @@
+site=https://github.com/PolyMC/PolyMC/tags
+pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Updated] New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (66 preceding siblings ...)
  2022-04-04 14:07 ` [PR PATCH] [Updated] " oynqr
@ 2022-04-04 17:59 ` oynqr
  2022-04-04 18:09 ` [PR REVIEW] " classabbyamp
                   ` (8 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-04-04 17:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]

There is an updated pull request by oynqr against master on the void-packages repository

https://github.com/oynqr/void-packages PolyMC
https://github.com/void-linux/void-packages/pull/34979

New package: PolyMC-1.1.1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/34979.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PolyMC-34979.patch --]
[-- Type: text/x-diff, Size: 2376 bytes --]

From 7e84f3ef67a5bdf0c717f11c1924a2fbbf9c270c Mon Sep 17 00:00:00 2001
From: Philipp David <pd@3b.pm>
Date: Mon, 10 Jan 2022 11:32:22 +0100
Subject: [PATCH] New package: PolyMC-1.1.1

---
 srcpkgs/PolyMC/files/README.voidlinux |  6 ++++++
 srcpkgs/PolyMC/template               | 30 +++++++++++++++++++++++++++
 srcpkgs/PolyMC/update                 |  2 ++
 3 files changed, 38 insertions(+)
 create mode 100644 srcpkgs/PolyMC/files/README.voidlinux
 create mode 100644 srcpkgs/PolyMC/template
 create mode 100644 srcpkgs/PolyMC/update

diff --git a/srcpkgs/PolyMC/files/README.voidlinux b/srcpkgs/PolyMC/files/README.voidlinux
new file mode 100644
index 000000000000..16ee7f91717b
--- /dev/null
+++ b/srcpkgs/PolyMC/files/README.voidlinux
@@ -0,0 +1,6 @@
+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.
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
new file mode 100644
index 000000000000..3b3b0deb3466
--- /dev/null
+++ b/srcpkgs/PolyMC/template
@@ -0,0 +1,30 @@
+# Template file for 'PolyMC'
+pkgname=PolyMC
+version=1.1.1
+revision=1
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
+ -DLauncher_VERSION_BUILD=${revision}"
+hostmakedepends="openjdk8 qt5-host-tools qt5-qmake"
+makedepends="qt5-devel"
+depends="virtual?java-runtime qt5-imageformats xrandr"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-only"
+homepage="https://polymc.org/"
+distfiles="https://github.com/PolyMC/PolyMC/releases/download/${version}/PolyMC-${version}.tar.gz"
+checksum=7ade9abc3a6f61ed27a129c10084c783cc9a3266484a53e29dabcc1cbb0ba5c4
+
+case "$XBPS_TARGET_MACHINE" in
+	armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
+esac
+
+post_patch() {
+	vsed -i buildconfig/BuildConfig.cpp.in \
+		-e 's/"-" + QString/"_" + QString/'
+	rm -rf .git
+}
+
+post_install() {
+	vdoc ${FILESDIR}/README.voidlinux
+}
diff --git a/srcpkgs/PolyMC/update b/srcpkgs/PolyMC/update
new file mode 100644
index 000000000000..7517baa7a2f7
--- /dev/null
+++ b/srcpkgs/PolyMC/update
@@ -0,0 +1,2 @@
+site=https://github.com/PolyMC/PolyMC/tags
+pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (67 preceding siblings ...)
  2022-04-04 17:59 ` oynqr
@ 2022-04-04 18:09 ` classabbyamp
  2022-04-04 18:47 ` Scrumplex
                   ` (7 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: classabbyamp @ 2022-04-04 18:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r842013432

Comment:
update files are usually not necessary for github. why does this need one? 

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (68 preceding siblings ...)
  2022-04-04 18:09 ` [PR REVIEW] " classabbyamp
@ 2022-04-04 18:47 ` Scrumplex
  2022-04-04 20:21 ` oynqr
                   ` (6 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: Scrumplex @ 2022-04-04 18:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

New review comment by Scrumplex on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r842041387

Comment:
Probably a relic from the time we (PolyMC) didn't use GH releases (everything prior to 1.1.0).

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (69 preceding siblings ...)
  2022-04-04 18:47 ` Scrumplex
@ 2022-04-04 20:21 ` oynqr
  2022-04-04 21:41 ` classabbyamp
                   ` (5 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-04-04 20:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r842108878

Comment:
It picked up a 1.2 from somewhere in the release notes, so I limited it to the tags page.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (70 preceding siblings ...)
  2022-04-04 20:21 ` oynqr
@ 2022-04-04 21:41 ` classabbyamp
  2022-04-05  0:07 ` tibequadorian
                   ` (4 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: classabbyamp @ 2022-04-04 21:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r842162605

Comment:
is there a difference between the distfile listed in the template and the github-generated tag archive? If so, using that could remove the need for this

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (71 preceding siblings ...)
  2022-04-04 21:41 ` classabbyamp
@ 2022-04-05  0:07 ` tibequadorian
  2022-04-05  7:50 ` oynqr
                   ` (3 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: tibequadorian @ 2022-04-05  0:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

New review comment by tibequadorian on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r842230637

Comment:
I assume the release archive contains the submodules

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR REVIEW] New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (72 preceding siblings ...)
  2022-04-05  0:07 ` tibequadorian
@ 2022-04-05  7:50 ` oynqr
  2022-04-08 16:30 ` Uiyx
                   ` (2 subsequent siblings)
  76 siblings, 0 replies; 78+ messages in thread
From: oynqr @ 2022-04-05  7:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

New review comment by oynqr on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#discussion_r842475568

Comment:
The release archive contains a shallow, recursive checkout of the corresponding tag. I contributed the workflow that creates it to make packaging, especially for void, easier.

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (73 preceding siblings ...)
  2022-04-05  7:50 ` oynqr
@ 2022-04-08 16:30 ` Uiyx
  2022-04-08 18:17 ` DioEgizio
  2022-04-08 21:23 ` [PR PATCH] [Merged]: " Johnnynator
  76 siblings, 0 replies; 78+ messages in thread
From: Uiyx @ 2022-04-08 16:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

New comment by Uiyx on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1093067487

Comment:
When will this be merged?

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (74 preceding siblings ...)
  2022-04-08 16:30 ` Uiyx
@ 2022-04-08 18:17 ` DioEgizio
  2022-04-08 21:23 ` [PR PATCH] [Merged]: " Johnnynator
  76 siblings, 0 replies; 78+ messages in thread
From: DioEgizio @ 2022-04-08 18:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

New comment by DioEgizio on void-packages repository

https://github.com/void-linux/void-packages/pull/34979#issuecomment-1093158762

Comment:
i personally hope asap

^ permalink raw reply	[flat|nested] 78+ messages in thread

* Re: [PR PATCH] [Merged]: New package: PolyMC-1.1.1
  2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
                   ` (75 preceding siblings ...)
  2022-04-08 18:17 ` DioEgizio
@ 2022-04-08 21:23 ` Johnnynator
  76 siblings, 0 replies; 78+ messages in thread
From: Johnnynator @ 2022-04-08 21:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]

There's a merged pull request on the void-packages repository

New package: PolyMC-1.1.1
https://github.com/void-linux/void-packages/pull/34979

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

Testing was done on my KDE workstation and also on a clean live booted environment (only manual packages were: base-system, xorg, PolyMC). Logging in with a Microsoft account was not tested, since I don't have one. Minecraft versions 1.16.5 and 21w18a were successfully tested with the system jdk and the latest Minecraft release 1.18.1 with jdk 17 from adoptium.

I wasn't too sure which license to pick, so I just tried to be as comprehensive as possible.

Closes #34933

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 78+ messages in thread

end of thread, other threads:[~2022-04-08 21:23 UTC | newest]

Thread overview: 78+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-10 12:06 [PR PATCH] New package: PolyMC-1.0.5 oynqr
2022-01-10 12:19 ` [PR PATCH] [Updated] " oynqr
2022-01-21 19:32 ` sug0
2022-01-22  9:28 ` oynqr
2022-01-31 10:27 ` [PR PATCH] [Updated] " oynqr
2022-01-31 12:13 ` New package: PolyMC-1.0.6 oynqr
2022-02-16 16:09 ` Scrumplex
2022-02-17 15:54 ` [PR PATCH] [Updated] " oynqr
2022-02-17 15:55 ` oynqr
2022-02-18  3:46 ` [PR REVIEW] " ericonr
2022-02-18  3:46 ` ericonr
2022-02-18  9:23 ` [PR PATCH] [Updated] " oynqr
2022-02-18  9:26 ` [PR REVIEW] " oynqr
2022-02-18  9:26 ` oynqr
2022-02-21  0:32 ` classabbyamp
2022-02-21  9:17 ` [PR PATCH] [Updated] " oynqr
2022-02-22 11:37 ` oynqr
2022-02-22 11:47 ` oynqr
2022-02-25 12:34 ` JamiKettunen
2022-02-25 12:55 ` JamiKettunen
2022-02-25 12:55 ` [PR REVIEW] " JamiKettunen
2022-02-25 12:55 ` JamiKettunen
2022-02-25 12:59 ` JamiKettunen
2022-02-25 15:06 ` classabbyamp
2022-02-25 19:47 ` JamiKettunen
2022-02-26  9:34 ` oynqr
2022-02-26  9:36 ` Scrumplex
2022-02-26  9:39 ` oynqr
2022-02-26  9:40 ` [PR PATCH] [Updated] " oynqr
2022-02-26  9:43 ` [PR REVIEW] " oynqr
2022-02-26 14:34 ` classabbyamp
2022-02-26 15:56 ` oynqr
2022-03-12 16:44 ` [PR PATCH] [Updated] " oynqr
2022-03-13 17:18 ` [PR PATCH] [Updated] New package: PolyMC-1.1.0 oynqr
2022-03-13 17:30 ` oynqr
2022-03-13 19:08 ` [PR REVIEW] " Johnnynator
2022-03-13 21:34 ` oynqr
2022-03-14  8:38 ` [PR PATCH] [Updated] " oynqr
2022-03-14  9:19 ` oynqr
2022-03-14  9:51 ` [PR REVIEW] " paper42
2022-03-14 20:04 ` oynqr
2022-03-14 20:13 ` paper42
2022-03-14 21:45 ` oynqr
2022-03-14 22:36 ` classabbyamp
2022-03-15  6:46 ` oynqr
2022-03-15  6:49 ` [PR PATCH] [Updated] " oynqr
2022-03-15 16:16 ` [PR REVIEW] " DioEgizio
2022-03-15 17:06 ` oynqr
2022-03-15 17:40 ` sug0
2022-03-15 17:41 ` DioEgizio
2022-03-15 22:40 ` [PR REVIEW] " paper42
2022-03-16  7:53 ` oynqr
2022-03-16  7:55 ` paper42
2022-03-16  7:59 ` oynqr
2022-03-16  8:09 ` [PR REVIEW] " oynqr
2022-03-16  9:32 ` [PR PATCH] [Updated] " oynqr
2022-03-16 13:01 ` classabbyamp
2022-03-16 15:53 ` [PR PATCH] [Updated] " oynqr
2022-03-16 16:17 ` [PR REVIEW] " DioEgizio
2022-03-20 20:18 ` [PR PATCH] [Updated] " oynqr
2022-03-24 16:04 ` DioEgizio
2022-03-25  1:24 ` [PR REVIEW] " tibequadorian
2022-03-25 14:08 ` JamiKettunen
2022-03-25 14:24 ` [PR REVIEW] " tibequadorian
2022-03-25 14:45 ` tibequadorian
2022-04-01 20:27 ` [PR PATCH] [Updated] " oynqr
2022-04-03 16:05 ` New package: PolyMC-1.1.1 DioEgizio
2022-04-04 14:07 ` [PR PATCH] [Updated] " oynqr
2022-04-04 17:59 ` oynqr
2022-04-04 18:09 ` [PR REVIEW] " classabbyamp
2022-04-04 18:47 ` Scrumplex
2022-04-04 20:21 ` oynqr
2022-04-04 21:41 ` classabbyamp
2022-04-05  0:07 ` tibequadorian
2022-04-05  7:50 ` oynqr
2022-04-08 16:30 ` Uiyx
2022-04-08 18:17 ` DioEgizio
2022-04-08 21:23 ` [PR PATCH] [Merged]: " Johnnynator

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).