unarr: consider using unarr as a shared library
Submitted by Felix Kauselmann
Link to original bug (#790004)
Description
The comic backend in evince currently uses an embedded subset of unarr to provide for rar compressed comic books. To my knowledge this is because of two reasons:
- evince only needs the rar extraction features of unarr
- the original upstream project is no longer maintained and does not supply a build mechanism for shared libraries
As I'm a user of unarr myself and thus have a strong interest in keeping the project working and up to date, I have forked the upstream project and added basic stuff needed for shared library builds and painless packaging on Linux (cmake build system, pkg-config support, symbol export).
I have also included and extended (for compatibility with non-rar code) the patches included in the evince unarr fork and improved the usage of system libraries in unarr.
The fork can be found here:
https://github.com/selmf/unarr
If you need installable packages for testing, you can try one of these:
RPM: https://build.opensuse.org/package/show/home:selmf:yacreader-rpm/libunarr DEB: https://build.opensuse.org/package/show/home:selmf/libunarr AUR: https://aur.archlinux.org/packages/libunarr
I'd be happy if the evince project would consider adding support for unarr as a shared library.