This page explains how to set up a PureOS pBuilder environment.
Everything you need is already pre-configured, you just need to install pbuilder:
sudo apt install pbuilder debootstrap devscripts
Then create a pBuilder environment
sudo pbuilder create --distribution amber --debootstrapopts --variant=buildd
If you are not on a PureOS distribution, but on Debian or a derivative (e.g. Ubuntu), do:
- Download & install the debootstrap package from PureOS
- Download & install the PureOS archive keyring package.
sudo apt install pbuilder devscripts
Create the pBuilder environment
sudo pbuilder create --distribution amber --debootstrapopts --variant=buildd --mirror http://repo.puri.sm/pureos --debootstrapopts "--keyring=/usr/share/keyrings/pureos-archive-keyring.gpg"
And that's it, you should have a working PureOS pBuilder environment now!