Skip to content

Creating packages for distribution

Terry Cain edited this page Apr 21, 2016 · 3 revisions

This is a work-in-progress dont use yet!

Needed packages to build for packaging

apt-get install -y git dpkg-dev devscripts dput

Ubuntu 14.04 packages (taken from branch ubuntu_14_04_packaging/debian/control build-depends line)

apt-get install -y debhelper linux-headers-generic libdbus-1-dev jq libsdl2-dev libsdl2-image-dev libfftw3-3 libfftw3-dev

Now I would advise building the deb's on VM's of the target architecture and distribution. So basically that means Ubuntu VMs for 14.04 14.10 15.04 15.10 16.04, though it might be possible to get away with hacking the .changes file to get launchpad to do it all.


Running ./scripts/build_deb_for_launchpad.sh "14.04" will build the latest version in the changelog file. I needed to put DEBUILD_DPKG_BUILDPACKAGE_OPTS="-kD16A9B5D" in ~/.devscripts for it to use the correct GPG key.

The script will print out at the end the temporary directory it was using, go into that and then there should be a .dsc a .changes and a .build file amongst others.

Running dput ppa:terrz/razer razer_1.0-0ubuntu1_source.changes will push the source file to #Launchpad which will then throw it at their incredibly slow build system. Eventually you will get some packages. Even uploading takes half a year to appear!


TODO add a test_run which builds it all using dpkg-buildpackage -us -uc and then production run which uses debuild -S

Ok, the version of the package directory depends on the latest version in the changelog so that must be edited on all packaging branches before merging to.

Note to self - Might need to specify a version to allow building of older packages