I am trying to create an PKGBUILD (installation file used from the package manager of the distribution) in Archlinux for the radiance. I have a question though regarding how the auxiliary files should be copied in the final package.
As I understand I need first to overlay the ray folder from the https://www.radiance-online.org/download-install/radiance-source-code/latest-release/radR52supp.tar.gz to over the initial extracted source code folder and then after the compilation to copy the lib folder into the
/<installed_path>/lib/ray and set the
RAYPATH environment parameter to this path. Is that correct?
Two questions though:
- Could I just copy the lib folder into the
/<installed_path>/lib/instead and not set the
RAYPATHparameter? Is it the same?
- What is the purpose of the
objfolder since from what I’ve seen it is not used/copied anywhere?
Also to mention that the pointed official stable release downloaded from here fails to compile because the resources folder is not existing inside the tar:
CMake Error at CMakeLists.txt:148 (add_subdirectory): add_subdirectory given source "resources" which is not an existing directory.
Thus either someone needs to go with the HEAD version instead or comment the corresponding line in the
Moreover, could someone explain a bit what it the purpose of this line in the
InstallRules. I had to comment it, in order to be able to compile correctly otherwise it fails.