Hi, I noticed that the pkgver() function seems to be generating version strings based solely on the upstream version and the short git hash (e.g., 0.19.11.4b54702).
Because git hashes are random and not chronological, this causes issues with AUR helpers. For example, my local version ...4b54702 (from Nov 10) is considered "newer" than the remote version ...2b19fb7 (from Dec 9) simply because 4 is greater than 2.
Could you please update the pkgver() function to include a revision count (r-count) so the versions increase monotonically?
A common pattern for git packages is:
printf "%s.r%s.%s" "$(git describe --tags --abbrev=0 | sed 's/^v//')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
Pinned Comments
brunomiguel commented on 2021-10-08 23:59 (UTC)
Package available in binary form at userrepository.eu