Just build .deb's instead of tarballs. Use "alien" to convert .tgz into .deb, for example. I see no reason to invent my own build system, package format and package management software.
I build my rpm packages in clean room chroot (using mock) for about decade. It works fine in docker too.