I’m using cling headers and libraries on Arch, via AUR package. However, specifying cling directories isn’t elegant, I have to hardcode paths and libraries. I suggest adding a .pc file to the package, either directly to the cling-git AUR repository, or to the cling git repo. For example, this is currently working for me:
Can you open a pull request with that at https://github.com/root-project/cling/pulls? Like that you show as the original author and we are sure we integrate it properly (e.g. file name and its location).
Where are ${prefix} picked up from? Should this file be generated by the build system?
This ${prefix} is specified by the aur package, as cling is installed there.
If all cling releases for all linux distros are installed to /opt/cling, it sounds fine to add it to cling repo. If that is the case, I’ll create the PR gladly.