fix(pkgver): switch to count.hash versioning to support untagged repos

This commit is contained in:
Kosa Matyas 2026-01-07 21:38:01 +02:00
parent 1df83df71d
commit a8480f8070
No known key found for this signature in database
GPG key ID: F2CB939C8AA67892

View file

@ -15,7 +15,6 @@ sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}