This may help (or not)...
I have a git repository for a shell script to clone and build Kstars/indi from their respective source-code git repositories. It does not install the resultant binary, so that you can continue to have both an "official" version and this version from nightly source code (launched from it's own directory).

This was based off of information kindly provided by Hy Murveit earlier on the forum.
Please see the github repository for more information...
github.com/JerryBlack/buildKstarsNightlyFromGit

The script may be executed with one of these parameter options:
all - run everything
dependencies - install the dependencies
clone - clone the repositories
update - update the repositories \(git pull\)
stellarsolver - clone and install stellarsolver
indicore - compile and install indi-core
indi3rdpartylibs - compile and install indi-3rdparty-libs
indi3rdparty - compile and install indi-3rdparty
kstars - compile kstars
help - describe the parmeter options (sic).

Read More...