makedeb
Minecraft launcher with ability to manage multiple instances.
Click here to go back to the commit logs for polymc-git.
Hash: 6b37c1ce34d6cd16c5adc27d032e6566ad52d46e
Message: fix -git
diff --git a/.SRCINFO b/.SRCINFO
index 95b5661..0596a3d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,37 +1,50 @@
-generated-by = makedeb-makepkg
-
-pkgbase = polymc-git
- pkgdesc = Minecraft launcher with ability to manage multiple instances.
- pkgver = 1.2.0.r0.g56ce7f5d
- pkgrel = 1
- url = https://github.com/PolyMC/PolyMC
- arch = i686
- arch = x86_64
- license = GPL3
- makedepends = g++
- makedepends = gcc
- makedepends = cmake
- makedepends = git
- makedepends = openjdk-17-jdk
- makedepends = zlib1g-dev
- makedepends = libgl1-mesa-dev
- makedepends = qtbase5-dev
- makedepends = qtchooser
- makedepends = qt5-qmake
- makedepends = qtbase5-dev-tools
- depends = libqt5xml5
- depends = libqt5core5a
- depends = libqt5network5
- depends = libqt5gui5
- optdepends = java-runtime=8: support for Minecraft versions < 1.17
- optdepends = java-runtime=17: support for Minecraft versions >= 1.17
- provides = polymc
- conflicts = polymc
- source = git+https://github.com/PolyMC/PolyMC
- source = git+https://github.com/MultiMC/libnbtplusplus
- source = git+https://github.com/stachenov/quazip
- sha256sums = SKIP
- sha256sums = SKIP
- sha256sums = SKIP
-
+generated-by = makedeb
pkgname = polymc-git
+pkgbase = polymc-git
+pkgdesc = Minecraft launcher with ability to manage multiple instances.
+pkgrel = 1
+pkgver = 1.3.2.r1.g5608531
+url = https://github.com/PolyMC/PolyMC
+arch = i686
+arch = x86_64
+conflicts = polymc
+depends = libqt5xml5
+depends = libqt5core5a
+depends = libqt5network5
+depends = libqt5gui5
+license = GPL3
+makedepends = extra-cmake-modules
+makedepends = g++
+makedepends = gcc
+makedepends = cmake
+makedepends = git
+makedepends = openjdk-17-jdk
+makedepends = zlib1g-dev
+makedepends = libgl1-mesa-dev
+makedepends = qtbase5-dev
+makedepends = qtchooser
+makedepends = qt5-qmake
+makedepends = qtbase5-dev-tools
+optdepends = java-runtime=8: support for Minecraft versions < 1.17
+optdepends = java-runtime=17: support for Minecraft versions >= 1.17
+provides = polymc
+source = git+https://github.com/PolyMC/PolyMC
+source = git+https://github.com/MultiMC/libnbtplusplus
+source = git+https://github.com/stachenov/quazip
+sha256sums = SKIP
+sha256sums = SKIP
+sha256sums = SKIP
+makedepends = extra-cmake-modules
+makedepends = g++
+makedepends = gcc
+makedepends = cmake
+makedepends = git
+makedepends = openjdk-17-jdk
+makedepends = zlib1g-dev
+makedepends = libgl1-mesa-dev
+makedepends = qtbase5-dev
+makedepends = qtchooser
+makedepends = qt5-qmake
+makedepends = qtbase5-dev-tools
+optdepends = java-runtime=8: support for Minecraft versions < 1.17
+optdepends = java-runtime=17: support for Minecraft versions >= 1.17
diff --git a/PKGBUILD b/PKGBUILD
index e5d448c..bd25e27 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=polymc
pkgname=${_pkgname}-git
-pkgver=1.2.0.r0.g56ce7f5d
+pkgver=1.3.2.r1.g5608531
pkgrel=1
pkgdesc="Minecraft launcher with ability to manage multiple instances."
arch=('i686' 'x86_64')
@@ -11,7 +11,7 @@ license=('GPL3')
depends=('libqt5xml5' 'libqt5core5a' 'libqt5network5' 'libqt5gui5')
provides=('polymc')
conflicts=('polymc')
-makedepends=('g++' 'gcc' 'cmake' 'git' 'openjdk-17-jdk' 'zlib1g-dev' 'libgl1-mesa-dev' 'qtbase5-dev' 'qtchooser' 'qt5-qmake' 'qtbase5-dev-tools')
+makedepends=('extra-cmake-modules' 'g++' 'gcc' 'cmake' 'git' 'openjdk-17-jdk' 'zlib1g-dev' 'libgl1-mesa-dev' 'qtbase5-dev' 'qtchooser' 'qt5-qmake' 'qtbase5-dev-tools')
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"
@@ -22,8 +22,11 @@ sha256sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
- cd PolyMC
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "${srcdir}/PolyMC"
+ _tag="$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/openmw-//')"
+ _numcommits="$(git rev-list `git rev-list --tags --no-walk --max-count=1`..HEAD --count)"
+ _hash="$(git rev-parse --short HEAD)"
+ printf "%s.r%s.g%s" "$_tag" "$_numcommits" "$_hash"
}
prepare() {