This would probably ease maintenance for distro maintainers.
This would require the wrapper variable to be joined with the prefix, something like
let prefix = std::env::var("BEAR_INSTALL_PREFIX").unwrap_or(DEFAULT_PREFIX);
let prefix = PathBuf::from(prefix);
...
Would you be open to such a patch?
@DarthGandalf would this help for the ebuild?