5a) Make sure you have ‘the right" deb-src
entries in your /etc/apt/sources.list
file uncommented. b) sudo apt build-dep foo
. see a) if it complains. c) apt source -b foo
downloads the original source & Debian packaging tarballs and builds them. If it succeeds, proceed to