hi mate.
https://www.mobileread.com/forums/sho...&postcount=175
perhaps this is more what you were thinking of?
Like:
Run a debian... get build essentials, source, and the sources "depends"
sudo apt-get install build-essential
apt-get source whateverApplication
sudo apt-get build-dep whateverApplication
That was the easiest route I found so far.