I'm using this script to build the package inside a Docker container:
# docker run --rm -ti ubuntu
Afterwards the container needs some preparations:
# cat -s | gpg --import
<paste gpg private key here and press Ctrl+d>
# apt-get update && apt-get install -y curl ca-certificates
# export VERSION=v1.1.0
# export MAINTAINER=...
# export PPA=...
And finally execute the script below
# curl https://gist.githubusercontent.com/Luzifer/4a89674bf20b6cddd8e73e9c4c46dd82/raw/build.sh | bash -ex
At the end it prompts for your GPG password and you're done…