change version tag to version.revision.commit

This commit is contained in:
lod 2025-02-22 15:43:09 +01:00
parent d3ed073638
commit 1e7090a34d
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
pkgbase = orca-slicer-git
pkgdesc = G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
pkgver = 2.3.0.dev.4d762c4e91
pkgver = 2.3.0.r24599.dc49116
pkgrel = 1
url = https://github.com/SoftFever/OrcaSlicer
arch = x86_64

View file

@ -1,5 +1,5 @@
pkgname=orca-slicer-git
pkgver=2.3.0.dev.4d762c4e91
pkgver=2.3.0.r24599.dc49116
pkgrel=1
pkgdesc="G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)"
arch=('x86_64')
@ -16,9 +16,9 @@ b2sums=('SKIP')
pkgver() {
cd $srcdir/$pkgname
_version=$(sed -n 's/set(SoftFever_VERSION "\([^"]*\)-.*".*/\1/p' version.inc)
_suffix=$(sed -n 's/set(SoftFever_VERSION ".*-\([^"]*\)".*/\1/p' version.inc)
_commit=$(git rev-parse --short HEAD)
printf "%s.%s.%s" $_version $_suffix $_commit
_revision=$(git rev-list --count HEAD)
_commit=$(git rev-parse --short=7 HEAD)
printf "%s.r%s.%s" $_version $_revision $_commit
}
prepare() {