makedeb


polymc 6.1-0.1


Minecraft launcher with ability to manage multiple instances.

Click here to go back to the commit logs for polymc.

Commit:


Hash: 6c9159eaf695bc06efb6c01d19771ff29a0dde8b

Message: Update 1.1.0

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 3de26c6..b4263ec 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,8 +2,8 @@ generated-by = makedeb-makepkg
 
 pkgbase = polymc
 	pkgdesc = Minecraft launcher with ability to manage multiple instances.
-	pkgver = 1.0.6
-	pkgrel = 4
+	pkgver = 1.1.0
+	pkgrel = 1
 	url = https://github.com/PolyMC/PolyMC
 	arch = i686
 	arch = x86_64
@@ -25,9 +25,9 @@ pkgbase = polymc
 	provides = polymc
 	conflicts = multimc
 	conflicts = polymc
-	source = git+https://github.com/PolyMC/PolyMC#tag=1.0.6
+	source = git+https://github.com/PolyMC/PolyMC#tag=1.1.0
 	source = git+https://github.com/MultiMC/libnbtplusplus
-	source = git+https://github.com/PolyMC/quazip
+	source = git+https://github.com/stachenov/quazip
 	sha256sums = SKIP
 	sha256sums = SKIP
 	sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 8d3246b..3a4d708 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
 # Maintainer: dada513 <dada513@protonmail.com>
 
 pkgname=polymc
-pkgver=1.0.6
-pkgrel=4
+pkgver=1.1.0
+pkgrel=1
 pkgdesc="Minecraft launcher with ability to manage multiple instances."
 arch=('i686' 'x86_64')
 url="https://github.com/PolyMC/PolyMC"
@@ -15,7 +15,7 @@ optdepends=('java-runtime=8: support for Minecraft versions < 1.17'
             'java-runtime=17: support for Minecraft versions >= 1.17')
 source=("git+https://github.com/PolyMC/PolyMC#tag=${pkgver}"
         "git+https://github.com/MultiMC/libnbtplusplus"
-        "git+https://github.com/PolyMC/quazip")
+        "git+https://github.com/stachenov/quazip")
 
 sha256sums=('SKIP'
             'SKIP'
@@ -32,25 +32,22 @@ prepare() {
 build() {
   cd "${srcdir}/PolyMC"
   mkdir -p build
-
-  cmake -S . -B build \
-	  -DCMAKE_BUILD_TYPE=Release \
-    -DCMAKE_INSTALL_PREFIX="/usr" \
-    -DLauncher_LAYOUT=lin-system
-
   cd build
-  make -j$(nproc)
+  cmake -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX="/usr" \
+    -DLauncher_PORTABLE=OFF \
+    -DLauncher_APP_BINARY_NAME="${pkgname}" \
+    ..
+  cmake --build .
 }
 
 check() {
   cd "${srcdir}/PolyMC/build"
-  make test
+  ctest .
 }
 
 package() {
   cd "${srcdir}/PolyMC/build"
-  make -j$(nproc) install DESTDIR="${pkgdir}"
-  install -D "${srcdir}/PolyMC/build/libLauncher_quazip.so" "${pkgdir}/usr/lib/libLauncher_quazip.so"
-  install -D "${srcdir}/PolyMC/build/libLauncher_nbt++.so" "${pkgdir}/usr/lib/libLauncher_nbt++.so"
+  DESTDIR="$pkgdir" cmake --install .
 }