makedeb


polymc-git 6.1.0.ffcb0c3-1


Minecraft launcher with ability to manage multiple instances.

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

Commit:


Hash: cb79772c410ead856a7fa89f1bf068c650655012

Message: fix package

Diff


diff --git a/.SRCINFO b/.SRCINFO
index fdfd357..fc92504 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,8 +2,8 @@ generated-by = makedeb-makepkg
 
 pkgbase = polymc-git
 	pkgdesc = Minecraft launcher with ability to manage multiple instances.
-	pkgver = 1.0.5.r171.g076efc4c
-	pkgrel = 1
+	pkgver = 1.0.6.r350.gca211558
+	pkgrel = 2
 	url = https://github.com/PolyMC/PolyMC
 	arch = i686
 	arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 629333e..7f5ab95 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
 # Maintainer: dada513 <dada513@protonmail.com>
 
-pkgname=polymc-git
-pkgver=1.0.5.r171.g076efc4c
-pkgrel=1
+_pkgname=polymc
+pkgname=${_pkgname}-git
+pkgver=1.0.6.r350.gca211558
+pkgrel=2
 pkgdesc="Minecraft launcher with ability to manage multiple instances."
 arch=('i686' 'x86_64')
 url="https://github.com/PolyMC/PolyMC"
@@ -37,22 +38,22 @@ 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}"
+  DESTDIR="$pkgdir" cmake --install .
 }