In this case, you should have you dev environment setup in a container (or VM) with the correct dependencies
Having built rpms, Deb and pkgbuild; pkgbuild is so much easier
In this case, you should have you dev environment setup in a container (or VM) with the correct dependencies