#install the missing dependencies:
sudo apt install scdoc
sudo apt install libinih-dev
#remove default meson and upgrade meson to the newest version
sudo apt remove meson
#upgrade it via pip instead
sudo pip install meson
to avoid
Run-time dependency inih found: NO (tried pkgconfig and cmake)
meson.build:29:0: ERROR: Dependency "inih" not found, tried pkgconfig and cmake
On e.g. Ubuntu 20.04.5 LTS, one needs first:
to avoid
and similar.