home changes contents help options

The LibraryTemplate comes with a debian directory for making .deb packages for Debian and any Debian-derived distro like Ubuntu, Linux Mint, etc. It is designed to work with the Debian pkg-multimedia team's workflow which uses git-buildpackage.

Setting up the files

All the files you need for a basic library are already included in the debian folder. In order to use these for your library, replace the word template with the name of your library in all of the files in the debian folder, then also change the information in template-meta.pd to represent your library.

Building a package

You can build an installable .deb package on your own machine without much difficulty, here's a quick overview of how:

  1. sudo apt-get install puredata-dev dpkg-dev devscripts debhelper

  2. cd into your library

  3. make dpkg-source

  4. debuild -uc -us (remove the -uc -us if you are setup to sign with a gpg key)

  5. ls -l ../pd-*.deb (now you can see your package!)

Building for a specific distro and release

You can use the Debian utility pbuilder or cowbuilder to build packages for any Debian, Ubuntu, Mint, etc. release. It is more complicated, but here's a quick summary:

Uploading to Launchpad

Ubuntu provides https://launchpad.net/, a free-to-use service for building Debian packages for Ubuntu distros. Its a useful way to test and distribute your packages, and pretty easy to use. It also builds on different architectures, like i386, amd64, etc.

Submitting to pkg-multimedia's git

Here are the steps, using <package> as the example library, i.e. for the library motex, <libdir> is motex, <package> is pd-motex, <user> is your username on alioth.debian.org.

set up the remote repo and push to it

Now you should be able to see your new repo on the git.debian.org gitweb: http://git.debian.org/?p=pkg-multimedia/pd-motex.git;a=summary

references