The current awk call in pkgver
can't deal with the version being 0.19.0-rc1 instead of 0.19.0-dev. This breaks the pkgver so that the version is .r7459.867960d6f
instead of 0.19.0.r7459.867960d6f
.
I suggest the following patch to the PKGBUILD:
diff --git a/PKGBUILD b/PKGBUILD
index 78997ce..47705ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -63,7 +63,7 @@ pkgver() {
(
set -o pipefail
meson introspect --projectinfo "${_builddir_pkgver}" |
- awk 'match($0, /"version":\s*"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)-dev"/, ret) {printf "%s",ret[1]}'
+ awk 'match($0, /"version":\s*"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)-(dev|rc[[:digit:]]+)"/, ret) {printf "%s",ret[1]}'
)
cd "${pkgname}"
printf ".r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
Pinned Comments
aperez commented on 2018-09-28 08:31 (UTC) (edited on 2019-03-07 16:25 (UTC) by aperez)
IMPORTANT
Please do not flag this package as out-of-date if the only change you need is to update to a newer version. It is not needed because it always fetches the sources using Git and uses the most recent version without needing to modify the PKGBUILD — just rebuild the package.
Also, please try building in a clean chroot before assuming that the PKGBUILD is broken.