This document is a quick summary of all you need to know to package imv for your favourite operating system.
Your options here are Wayland or X11, or both. By default both are included,
with a separate binary for each being built.
/usr/bin/imv will be a script
that checks for a Wayland compositor before running the appropriate binary.
If you only care about one of these, you can specify to build only one of these
-D windows=wayland to
meson, in which case only that
binary shall be packaged without the need for a launcher script to
select between the two.
Alternatively, you could provide separate packages for X11 and Wayland that act as alternatives to each other.
imv supports multiple "backends" in a plugin style architecture. Each backend provides support for different image formats using different underlying libraries. The ones that are right for your operating system depend on which formats you need support for, and your licensing requirements.
imv is published under the MIT license, but its backends may have different licensing requirements.
By default, the libraries available are detected and support for them is
automatically enabled, but you can enable or disable specific ones by
-D freeimage=enabled or
You can also make sure all the backends are enabled by passing
Once your backends have been configured and you've confirmed the library each backend uses is installed, you can simply follow the Installation section of the README to build imv.
Package the resulting binary and man pages in your operating system's native package format.