Fix pkgver function - remove usage of $pkgver inside

This commit is contained in:
Prasanna Venkadesh 2026-02-06 20:20:18 +05:30
parent 622f8046b0
commit e8175600aa

View file

@ -27,7 +27,7 @@ validpgpkeys=()
pkgver() {
cd "$srcdir/battinfo"
printf "$pkgver.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
printf "%s.r%s.%s" "$(git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {