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: 5d3f7f870b4ebb1d71442fa03cd8f01d94a474ac

Message: fix package

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 4655273..eb28294 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -23,7 +23,7 @@ pkgbase = polymc-git
 	conflicts = polymc
 	source = git+https://github.com/PolyMC/PolyMC
 	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 a9d4c41..629333e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: dada513 <dada513@protonmail.com>
 
 pkgname=polymc-git
-pkgver=1.0.6
+pkgver=1.0.5.r171.g076efc4c
 pkgrel=1
 pkgdesc="Minecraft launcher with ability to manage multiple instances."
 arch=('i686' 'x86_64')
@@ -15,11 +15,15 @@ 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"
         "git+https://github.com/MultiMC/libnbtplusplus"
-        "git+https://github.com/PolyMC/quazip")
+        "git+https://github.com/stachenov/quazip")
 
 sha256sums=('SKIP'
             'SKIP'
             'SKIP')
+pkgver() {
+  cd PolyMC
+  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
 
 prepare() {
   cd "${srcdir}/PolyMC"
@@ -34,7 +38,7 @@ build() {
   mkdir -p build
 
   cmake -S . -B build \
-	  -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX="/usr" \
     -DLauncher_LAYOUT=lin-system
 
@@ -50,7 +54,5 @@ check() {
 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"
 }