New comment by r-ricci on void-packages repository https://github.com/void-linux/void-packages/pull/37940#issuecomment-1181853391 Comment: I added a subpackage with RAR support. ~Is it ok to define the custom functions `_7z_build` and `_7z_install`? AFAIK no other template does this, but the alternative would be to have two almost identical templates, and they must be kept in sync on every future change.~ Currently `p7zip-unrar` depends on `p7zip`. This PR replaces `p7zip` with `7zip` and `p7zip-unrar` with `7zip-unrar`, which conflicts with `7zip`. On systems where `p7zip-unrar` is installed, the update will fail due to conflicts and a manual `xbps-remove -F p7zip` will be required. Is this ok? I don't think it's possible to compile the RAR code as a distinct shared library without non-trivial patches, but I might be wrong.