Package Details: polymc 7.1-2

Git Clone URL: https://aur.archlinux.org/polymc.git (read-only, click to copy)
Package Base: polymc
Description: Minecraft launcher with the ability to manage multiple instances
Upstream URL: https://github.com/PolyMC/PolyMC
Licenses: GPL3
Submitter: glorious-yellow
Maintainer: LennyLennington (Kaydax)
Last Packager: Kaydax
Votes: 74
Popularity: 1.70
First Submitted: 2022-01-11 20:53 (UTC)
Last Updated: 2026-07-14 01:51 (UTC)

Dependencies (18)

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

dada513 commented on 2022-04-19 11:38 (UTC)

Patch to use vendored tarball, 1.2.0, LTO, and fix dependencies

From 91c7faa77b8c25517134b0695e4c82cf2c65fd7c Mon Sep 17 00:00:00 2001
From: dada513 <dada513@protonmail.com>
Date: Tue, 19 Apr 2022 13:35:33 +0200
Subject: [PATCH] Update to 1.2.0, use vendored tarball, fix dependencies

---
 PKGBUILD | 31 ++++++++++---------------------
 1 file changed, 10 insertions(+), 21 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 7e3e8e6..1f21419 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,16 @@
 # Contributor: Lenny McLennington <lennymclennington@protonmail.com>
 # Contributor: Miko <mikoxyzzz@gmail.com>
 # Contributor: Cheru Berhanu <aur attt cheru doot dev>
+# Contributor: dada513 <dada513@protonmail.com>

 pkgname=polymc
-pkgver=1.1.1
+pkgver=1.2.0
 pkgrel=1
 pkgdesc="Minecraft launcher with ability to manage multiple instances."
 arch=('i686' 'x86_64')
 url="https://github.com/PolyMC/PolyMC"
 license=('GPL3')
-depends=('java-runtime' 'libgl' 'qt5-base' 'zlib')
-provides=('polymc')
+depends=('java-runtime' 'libgl' 'qt5-base' 'zlib' 'qt5-imageformats' 'qt5-svg' 'hicolor-icon-theme')
 conflicts=('polymc')
 makedepends=('cmake' 'git' 'java-environment')
 optdepends=('glfw: to use system GLFW libraries'
@@ -20,41 +20,30 @@ optdepends=('glfw: to use system GLFW libraries'
             'visualvm: Profiling support'
             'xorg-xrandr: for older minecraft versions'
 )
-source=("PolyMC::git+https://github.com/PolyMC/PolyMC#tag=${pkgver}"
-        "git+https://github.com/MultiMC/libnbtplusplus#commit=dc72a20b7efd304d12af2025223fad07b4b78464"
-        "git+https://github.com/PolyMC/quazip#commit=c9ef32de19bceb58d236f5c22382698deaec69fd")
+source=("https://github.com/PolyMC/PolyMC/releases/download/$pkgver/PolyMC-$pkgver.tar.gz")

-sha256sums=('SKIP'
-            'SKIP'
-            'SKIP')
-
-prepare() {
-  cd "${srcdir}/PolyMC"
-  git submodule init
-  git config submodule.libnbtplusplus.url "${srcdir}/libnbtplusplus"
-  git config submodule.quazip.url "${srcdir}/quazip"
-  git submodule update
-}
+sha256sums=('f2bc1b0b18a166445e3ca03d3e0f606043c57b1811317079603bef4e44994484')

 build() {
-  cd "${srcdir}/PolyMC"
+  cd "${srcdir}/PolyMC-$pkgver"
   mkdir -p build

   cd build
   cmake -DCMAKE_BUILD_TYPE=None \
     -DCMAKE_INSTALL_PREFIX="/usr" \
-    -DLauncher_PORTABLE=OFF \
+    -DLauncher_BUILD_PLATFORM="archlinux" \
     -DLauncher_APP_BINARY_NAME="${pkgname}" \
+    -DENABLE_LTO=ON \
     ..
   cmake --build .
 }

 check() {
-  cd "${srcdir}/PolyMC/build"
+  cd "${srcdir}/PolyMC-$pkgver/build"
   ctest .
 }

 package() {
-  cd "${srcdir}/PolyMC/build"
+  cd "${srcdir}/PolyMC-$pkgver/build"
   DESTDIR="$pkgdir" cmake --install .
 }
-- 
2.35.3

LennyLennington commented on 2022-04-19 11:13 (UTC)

@glorious-yellow could you add @Scrumplex as a co-maintainer please

ChrisLane commented on 2022-04-18 11:25 (UTC) (edited on 2022-04-18 11:47 (UTC) by ChrisLane)

1.2.0 builds fine with lto enabled. Here's a PKGBUILD diff for 1.2.0 in general:

diff --git a/PKGBUILD b/PKGBUILD
index 7e3e8e6..caa22ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 # Contributor: Cheru Berhanu <aur attt cheru doot dev>

 pkgname=polymc
-pkgver=1.1.1
+pkgver=1.2.0
 pkgrel=1
 pkgdesc="Minecraft launcher with ability to manage multiple instances."
 arch=('i686' 'x86_64')
@@ -21,8 +21,8 @@ optdepends=('glfw: to use system GLFW libraries'
             'xorg-xrandr: for older minecraft versions'
 )
 source=("PolyMC::git+https://github.com/PolyMC/PolyMC#tag=${pkgver}"
-        "git+https://github.com/MultiMC/libnbtplusplus#commit=dc72a20b7efd304d12af2025223fad07b4b78464"
-        "git+https://github.com/PolyMC/quazip#commit=c9ef32de19bceb58d236f5c22382698deaec69fd")
+        "git+https://github.com/PolyMC/libnbtplusplus#commit=2203af7eeb48c45398139b583615134efd8d407f"
+        "git+https://github.com/stachenov/quazip#commit=6117161af08e366c37499895b00ef62f93adc345")

 sha256sums=('SKIP'
             'SKIP'

Scrumplex commented on 2022-04-02 23:04 (UTC)

This needs qt5-svg and qt5-imageformats. Otherwise, most icons won't work.

Also, namcap complains that hicolor-icon-theme isn't a dependency

FintasticMan commented on 2022-04-01 12:32 (UTC)

I'm unable to build with lto enabled, but without lto it compiles and installs just fine. I'm unable to reproduce the issue @katt has with test #7 failing, it passes just fine for me.

katt commented on 2022-03-15 16:39 (UTC) (edited on 2022-03-15 16:50 (UTC) by katt)

I cannot for the life of me build this, just getting loads of undefined reference during linking. Log: https://gist.github.com/bdbbef4a7b0783a03f27b33509e13ae8

ah, it's due to LTO: https://github.com/PolyMC/PolyMC/issues/268

Even with LTO disabled (options=(!lto)), it instead fails one of the tests instead... 7/14 Test #7: PackageManifest ..................***Failed 0.01 sec

glorious-yellow commented on 2022-03-12 22:49 (UTC)

Also, did you test that it builds and packages properly before you pushed the commit that changes it to 1.1.0?

It didn't build correctly on my computer, so I then tested it again inside an Arch docker container. It worked inside the container so I assumed that there was an issue with my own setup.

ivan_p commented on 2022-03-12 19:24 (UTC)

Ah, I see... then I'll wait until next update, to check if it still occurs. If it's a one time issue, then it's probably not worth the research.

LennyLennington commented on 2022-03-12 19:17 (UTC) (edited on 2022-03-12 19:17 (UTC) by LennyLennington)

@Ivan_p The problem is something to do with the fact that the submodule changed to use upstream quazip instead of the PolyMC patched quazip that is at https://github.com/PolyMC/quazip, if that helps you find a way to fix it. Thanks for attempting to find a fix if you do get the time.