From 501a7580d04e75e999c7b2173994d20dbb99dc76 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 18 Oct 2022 18:31:04 -0400 Subject: [PATCH] PolyMC: update old urls and api keys another mitigation until the PrismLauncher fork releases --- srcpkgs/PolyMC/patches/prism.patch | 13 +++++++++++++ srcpkgs/PolyMC/template | 19 ++++++++++++++++--- srcpkgs/PolyMC/update | 2 +- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/PolyMC/patches/prism.patch diff --git a/srcpkgs/PolyMC/patches/prism.patch b/srcpkgs/PolyMC/patches/prism.patch new file mode 100644 index 000000000000..fb8fbd826274 --- /dev/null +++ b/srcpkgs/PolyMC/patches/prism.patch @@ -0,0 +1,13 @@ +--- a/buildconfig/BuildConfig.h ++++ b/buildconfig/BuildConfig.h +@@ -144,8 +144,8 @@ + QString LIBRARY_BASE = "https://libraries.minecraft.net/"; + QString AUTH_BASE = "https://authserver.mojang.com/"; + QString IMGUR_BASE_URL = "https://api.imgur.com/3/"; +- QString FMLLIBS_BASE_URL = "https://files.polymc.org/fmllibs/"; +- QString TRANSLATIONS_BASE_URL = "https://i18n.polymc.org/"; ++ QString FMLLIBS_BASE_URL = "https://files.prismlauncher.org/fmllibs/"; ++ QString TRANSLATIONS_BASE_URL = "https://i18n.prismlauncher.org/"; + + QString MODPACKSCH_API_BASE_URL = "https://api.modpacks.ch/"; + diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template index 350b51fd49d3..3b892f53f3f8 100644 --- a/srcpkgs/PolyMC/template +++ b/srcpkgs/PolyMC/template @@ -1,10 +1,9 @@ # Template file for 'PolyMC' pkgname=PolyMC version=1.4.2 -revision=2 +revision=3 build_style=cmake -configure_args="-DLauncher_BUILD_PLATFORM=Void - -DLauncher_VERSION_BUILD=${revision} -DLauncher_META_URL=https://meta.scrumplex.rocks/v1/" +configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_VERSION_BUILD=${revision}" hostmakedepends="extra-cmake-modules openjdk8 pkg-config qt5-host-tools qt5-qmake scdoc" makedepends="qt5-devel" @@ -24,6 +23,20 @@ case "$XBPS_TARGET_MACHINE" in armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";; esac +# XXX: remove these and update file when doing PrismLauncher migration +configure_args+=" -DLauncher_META_URL=https://meta.scrumplex.rocks/v1/ + -DLauncher_NEWS_RSS_URL=https://prismlauncher.org/feed/feed.xml + -DLauncher_NEWS_OPEN_URL=https://prismlauncher.org/news + -DLauncher_HELP_URL=https://prismlauncher.org/wiki/help-pages/%1 + -DLauncher_BUG_TRACKER_URL=https://github.com/PrismLauncher/PrismLauncher/issues + -DLauncher_TRANSLATIONS_URL=https://hosted.weblate.org/projects/prismlauncher/launcher/ + -DLauncher_MATRIX_URL=https://matrix.to/#/#prismlauncher:matrix.org + -DLauncher_DISCORD_URL=https://discord.gg/prismlauncher + -DLauncher_SUBREDDIT_URL=https://www.reddit.com/r/PrismLauncher/ + -DLauncher_MSA_CLIENT_ID=c36a9fb6-4f2a-41ff-90bd-ae7cc92031eb + -DLauncher_CURSEFORGE_API_KEY=\$2a\$10\$wuAJuNZuted3NORVmpgUC.m8sI.pv1tOPKZyBgLFGjxFp/br0lZCC + -DLauncher_Git=https://github.com/PrismLauncher/PrismLauncher" + post_patch() { vsed -i buildconfig/BuildConfig.cpp.in \ -e 's/+build\./_/' diff --git a/srcpkgs/PolyMC/update b/srcpkgs/PolyMC/update index 7517baa7a2f7..cc6e127e099b 100644 --- a/srcpkgs/PolyMC/update +++ b/srcpkgs/PolyMC/update @@ -1,2 +1,2 @@ -site=https://github.com/PolyMC/PolyMC/tags +site=https://github.com/PrismLauncher/PrismLauncher/tags pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'