clear

echo "  -----------------------------[ screen $STEPS of $STEPS ]----------------------------

  INSTALL DEVELOPER ENVIRONMENT FOR DEBIAN PACKAGING
  --------------------------------------------------
  Would you like to install a suite of packages used for developing Debian
  packages? If you choose to do this, the following packages will be
  installed:

      build-essential debhelper cdbs dh-make diffutils patch gnupg
      fakeroot lintian devscripts pbuilder dpatch dput quilt

  Note: additional packages listed as dependencies may also be installed.

if prompt "  Whould you like to install packaging tools?"; then
	sudo apt-get install -y build-essential debhelper cdbs dh-make diffutils patch gnupg fakeroot lintian devscripts pbuilder dpatch dput quilt
	sudo chown $USER:$USER /etc/pbuilderrc
	sudo echo "MIRRORSITE=http://ftp.de.debian.org/debian" > /etc/pbuilderrc
	sudo echo "DISTRIBUTION=jessie" >> /etc/pbuilderrc
	sudo echo "COMPONENTS=\"main contrib non-free\"" >> /etc/pbuilderrc
	sudo chown root:root /etc/pbuilderrc

	if prompt "  Create pbuilder environment now?"; then
		sudo pbuilder create
	fi
fi
