I want to install some software from source tarball. Even first user is like root user, there is doubt if it can do installation step on source tarball. is it possible through flatpak or someway and how to do it?
building applications as flatpaks is described in the manual:
Essentially, it consists of a few steps, namely:
- Install the desired SDK (e.g. for GNOME or KDE)
- Write a Json/Yaml file which describes how to build the package
- Using flatpak-builder to build it
- Using flatpak to install it
I recommend you to take a look at documentation mentioned above and also some of the simpler applications in the flathub github repository, like the gnome calculator: https://github.com/flathub/org.gnome.Calculator/blob/master/org.gnome.Calculator.json or for a more complex example with a lot of external dependencies, wxMaxima: https://github.com/scx/wxmaxima-flatpak