Skip to content

Instantly share code, notes, and snippets.

@qlyoung
Created July 24, 2017 16:23
Show Gist options
  • Save qlyoung/3319b22278cca7b22d4f43e5243520ea to your computer and use it in GitHub Desktop.
Save qlyoung/3319b22278cca7b22d4f43e5243520ea to your computer and use it in GitHub Desktop.
How to create a Debian source package

This assumes the upstream source is not already set up for packaging.

  1. Download the upstream source tarball. (upstream source = the one from the software’s original developers)

  2. Rename to <source_package>_<upstream_version>.orig.tar.gz (example: simgrid_3.6.orig.tar.gz)

  3. Untar the source tarball.

  4. Rename the resulting directory to <source_package>-<upstream_version>. (example: simgrid-3.6)

  5. cd <source_package>-<upstream_version> && dh_make (from the dh-make package). There are some alternatives to dh_make for specific sets of packages dh-make-perl, dh-make-php, ...

  6. dh_make will create the debian/ directory and populate all necessary files with default values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment