New comment by stuart-little on void-packages repository https://github.com/void-linux/void-packages/issues/5602#issuecomment-542799893 Comment: For what it's worth, this came up in the [now 404'd](https://github.com/voidlinux/void-packages/issues/7022) original GitHub discussion: there are ways around this headache short of templating. What worked for me with the latest [zathura](https://github.com/pwmt/zathura) (namely 0.4.4) was the following procedure: - got the latest libsynctex [arch package](https://www.archlinux.org/packages/extra/x86_64/libsynctex/) - untarred it and populated the respective directories as shown in the corresponding [file list](https://www.archlinux.org/packages/extra/x86_64/libsynctex/files/) That was pretty much it, as far as steps specific to `synctex` go. I then cloned the `zathura` repo, built and installed to a local directory `dir`, say. The `zathura` build system saw the `libsynctex` libraries and built in the `synctex` support as expected. I then made an xbps package out of the local installation directory with ``` # xbps-create -n "zathura-0.4.4_1" -s "document viewer" -A "x86_64" ``` This will create that package in your `/root/` folder, and you can then install it with ``` # xdowngrade zathura-0.4.4_1.x86_64.xbps ``` This second part will differ depending on your pdf viewer, but in any case, the first half of this, pertaining to `libsynctex` itself, should work and be fairly easily scriptable.