==> Starting pkgver()... ==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace. ==> ERROR: pkgver() generated an invalid version: ._r493682.691b97c884a1 -> error making: llvm-git-exit status 12 -> Failed to install the following packages. Manual intervention is required: llvm-git - exit status 12 llvm-libs-git - exit status 12
# This will almost match the output of `llvm-config --version` when the # LLVM_APPEND_VC_REV cmake flag is turned on. The only difference is # dash being replaced with underscore because of Pacman requirements. local _pkgver=$(awk -F 'MAJOR |MINOR |PATCH |)' \ 'BEGIN { ORS="." ; i=0 } \ /set\(LLVM_VERSION_/ { print $2 ; i++ ; if (i==2) ORS="" } \ END { print "\n" }' \ LLVMVersion.cmake)_r$(git rev-list --count HEAD).$(git rev-parse --short HEAD) echo"$_pkgver" }