New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/39866#issuecomment-1273832793 Comment: BTW, you could do something like this: ```diff diff --git a/srcpkgs/singular/template b/srcpkgs/singular/template index 441a5ba561..824345b27f 100644 --- a/srcpkgs/singular/template +++ b/srcpkgs/singular/template @@ -1,9 +1,8 @@ # Template file for 'singular' pkgname=singular -_patchver=p2 -_majver=4.3.1 -version=${_majver}${_patchver} +version=4.3.1p2 revision=1 +_majver=${version%p*} wrksrc=singular-${_majver} build_style=gnu-configure configure_args="--with-readline=ncurses ``` to avoid the xlint complain. I believe it is mandatory to have the full expanded version string in 'version=...' so that it can be easily parsed with grep and sed from templates (just grep "^version=", etc.). The `${version%p*}` thing should work ok for versions with a patchlevel as for versions without it.