fix pkgver

This commit is contained in:
brad 2025-09-28 17:34:30 +01:00
parent 7efd1a68cb
commit cffa588ea8
No known key found for this signature in database
GPG key ID: ED26A71EB8EB7A34
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pkgbase = deadlock-modmanager-git
pkgdesc = A mod manager for the Valve game Deadlock (latest git build)
pkgver = 0.9.0.r5.gda261f1
pkgrel = 1
pkgrel = 2
url = https://github.com/deadlock-mod-manager/deadlock-mod-manager
arch = x86_64
license = GPL-3.0-or-later

View file

@ -3,7 +3,7 @@ pkgname=deadlock-modmanager-git
_pkgname=${pkgname%-git}
pkgdesc='A mod manager for the Valve game Deadlock (latest git build)'
pkgver=0.9.0.r5.gda261f1
pkgrel=1
pkgrel=2
arch=('x86_64')
url="https://github.com/deadlock-mod-manager/deadlock-mod-manager"
license=('GPL-3.0-or-later')
@ -21,7 +21,7 @@ options=('!lto')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags --match="v*" | sed 's/^v//' | sed 's/\([^-]*\)-\([0-9]*\)-g\([0-9a-f]*\)/\1.\2.\3/' | sed 's/-/./g'
git describe --tags --long --abbrev=7 --match 'v[0-9]*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {