From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] PrismLauncher: update to 5.0, rename from PolyMC
Date: Thu, 20 Oct 2022 07:05:39 +0200 [thread overview]
Message-ID: <20221020050539.sVEdMiuaaWJoSGdX1CEgueVGTftB45ANcTMLG0PIrok@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40044@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 503 bytes --]
There is an updated pull request by classabbyamp against master on the void-packages repository
https://github.com/classabbyamp/void-packages poly-prism
https://github.com/void-linux/void-packages/pull/40044
PrismLauncher: update to 5.0, rename from PolyMC
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
A patch file from https://github.com/void-linux/void-packages/pull/40044.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-poly-prism-40044.patch --]
[-- Type: text/x-diff, Size: 4852 bytes --]
From 847d523a22794d22a7d7fe5a26efdd01ca247c35 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Wed, 19 Oct 2022 13:50:33 -0400
Subject: [PATCH] PrismLauncher: update to 5.0, rename from PolyMC
---
srcpkgs/PolyMC | 1 +
srcpkgs/PolyMC/template | 35 -------------
srcpkgs/PolyMC/update | 2 -
.../files/README.voidlinux | 0
srcpkgs/PrismLauncher/template | 49 +++++++++++++++++++
srcpkgs/PrismLauncher/update | 2 +
6 files changed, 52 insertions(+), 37 deletions(-)
create mode 120000 srcpkgs/PolyMC
delete mode 100644 srcpkgs/PolyMC/template
delete mode 100644 srcpkgs/PolyMC/update
rename srcpkgs/{PolyMC => PrismLauncher}/files/README.voidlinux (100%)
create mode 100644 srcpkgs/PrismLauncher/template
create mode 100644 srcpkgs/PrismLauncher/update
diff --git a/srcpkgs/PolyMC b/srcpkgs/PolyMC
new file mode 120000
index 000000000000..7527b4a5e65c
--- /dev/null
+++ b/srcpkgs/PolyMC
@@ -0,0 +1 @@
+PrismLauncher
\ No newline at end of file
diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template
deleted file mode 100644
index 350b51fd49d3..000000000000
--- a/srcpkgs/PolyMC/template
+++ /dev/null
@@ -1,35 +0,0 @@
-# Template file for 'PolyMC'
-pkgname=PolyMC
-version=1.4.2
-revision=2
-build_style=cmake
-configure_args="-DLauncher_BUILD_PLATFORM=Void
- -DLauncher_VERSION_BUILD=${revision} -DLauncher_META_URL=https://meta.scrumplex.rocks/v1/"
-hostmakedepends="extra-cmake-modules openjdk8 pkg-config qt5-host-tools
- qt5-qmake scdoc"
-makedepends="qt5-devel"
-depends="virtual?java-runtime qt5-svg 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=a66f25e0389815d2419a5b3aa1b85a390f14bbf3997c55c7da1ce4507b5aa511
-
-if [ -z "$XBPS_CHECK_PKGS" ]; then
- configure_args+=" -DBUILD_TESTING=0"
-fi
-
-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/+build\./_/'
- rm -rf .git
-}
-
-post_install() {
- vdoc ${FILESDIR}/README.voidlinux
-}
diff --git a/srcpkgs/PolyMC/update b/srcpkgs/PolyMC/update
deleted file mode 100644
index 7517baa7a2f7..000000000000
--- a/srcpkgs/PolyMC/update
+++ /dev/null
@@ -1,2 +0,0 @@
-site=https://github.com/PolyMC/PolyMC/tags
-pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'
diff --git a/srcpkgs/PolyMC/files/README.voidlinux b/srcpkgs/PrismLauncher/files/README.voidlinux
similarity index 100%
rename from srcpkgs/PolyMC/files/README.voidlinux
rename to srcpkgs/PrismLauncher/files/README.voidlinux
diff --git a/srcpkgs/PrismLauncher/template b/srcpkgs/PrismLauncher/template
new file mode 100644
index 000000000000..d5dfecff0a43
--- /dev/null
+++ b/srcpkgs/PrismLauncher/template
@@ -0,0 +1,49 @@
+# Template file for 'PrismLauncher'
+pkgname=PrismLauncher
+version=5.0
+revision=1
+build_style=cmake
+configure_args="-DLauncher_BUILD_PLATFORM=Void"
+hostmakedepends="extra-cmake-modules openjdk8 pkg-config qt5-host-tools
+ qt5-qmake scdoc"
+makedepends="qt5-devel"
+depends="virtual?java-runtime qt5-svg qt5-imageformats"
+short_desc="Custom launcher for Minecraft"
+maintainer="Philipp David <pd@3b.pm>"
+license="GPL-3.0-only"
+homepage="https://prismlauncher.org/"
+distfiles="https://github.com/PrismLauncher/PrismLauncher/releases/download/${version}/PrismLauncher-${version}.tar.gz"
+checksum=27c2c7e0c9aaa3450b7449683cfd2a9a941b7118ab83947de09285438e03c495
+
+if [ -z "$XBPS_CHECK_PKGS" ]; then
+ configure_args+=" -DBUILD_TESTING=0"
+fi
+
+case "$XBPS_TARGET_MACHINE" in
+ # XXX: this could be fixed by switching to clang, but it seems to produce
+ # non-PIE executables despite -fPIE being in the C(XX)FLAGS
+ # There's also some effort needed to get it working on cross
+ armv*) broken="https://github.com/PrismLauncher/PrismLauncher/issues/128" ;;
+esac
+
+post_extract() {
+ rm -rf .git
+}
+
+pre_configure() {
+ local _date
+ if [ "$SOURCE_DATE_EPOCH" ]; then
+ _date="$(date --utc --date "@$SOURCE_DATE_EPOCH" "+%Y-%m-%d")"
+ configure_args+=" -DLauncher_BUILD_TIMESTAMP=${_date}"
+ fi
+}
+
+post_install() {
+ vdoc ${FILESDIR}/README.voidlinux
+}
+
+PolyMC_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" (transitional dummy package)"
+ build_style=meta
+}
diff --git a/srcpkgs/PrismLauncher/update b/srcpkgs/PrismLauncher/update
new file mode 100644
index 000000000000..cc6e127e099b
--- /dev/null
+++ b/srcpkgs/PrismLauncher/update
@@ -0,0 +1,2 @@
+site=https://github.com/PrismLauncher/PrismLauncher/tags
+pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'
next prev parent reply other threads:[~2022-10-20 5:05 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 17:51 [PR PATCH] PrismLauncher: update to 5.0, renamed " classabbyamp
2022-10-19 17:54 ` [PR PATCH] [Updated] " classabbyamp
2022-10-19 17:57 ` PrismLauncher: update to 5.0, rename " classabbyamp
2022-10-19 18:15 ` [PR PATCH] [Updated] " classabbyamp
2022-10-19 18:17 ` [PR REVIEW] " classabbyamp
2022-10-19 18:31 ` classabbyamp
2022-10-19 18:35 ` classabbyamp
2022-10-19 18:35 ` classabbyamp
2022-10-19 19:02 ` classabbyamp
2022-10-19 19:24 ` [PR PATCH] [Updated] " classabbyamp
2022-10-19 19:24 ` classabbyamp
2022-10-19 19:40 ` classabbyamp
2022-10-19 19:47 ` [PR REVIEW] " classabbyamp
2022-10-19 19:48 ` [PR PATCH] [Updated] " classabbyamp
2022-10-19 21:30 ` OoLunar
2022-10-19 21:30 ` OoLunar
2022-10-19 21:34 ` paper42
2022-10-20 5:04 ` [PR PATCH] [Updated] " classabbyamp
2022-10-20 5:05 ` classabbyamp [this message]
2022-10-20 5:34 ` [PR REVIEW] " oynqr
2022-10-20 5:39 ` classabbyamp
2022-10-20 5:55 ` oynqr
2022-10-20 6:03 ` [PR PATCH] [Updated] " classabbyamp
2022-10-20 8:43 ` [PR REVIEW] " paper42
2022-10-20 17:39 ` classabbyamp
2022-10-20 17:44 ` [PR PATCH] [Merged]: " classabbyamp
2022-11-10 21:11 ` Yorizuka
2022-11-10 21:17 ` Yorizuka
2022-11-10 21:19 ` Vulldozer
2022-11-10 21:22 ` classabbyamp
2022-11-10 21:23 ` classabbyamp
2022-11-10 21:27 ` Yorizuka
2022-11-10 21:32 ` Yorizuka
2022-11-10 21:33 ` classabbyamp
2022-11-11 7:56 ` paper42
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221020050539.sVEdMiuaaWJoSGdX1CEgueVGTftB45ANcTMLG0PIrok@z \
--to=classabbyamp@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).