This assumes the upstream source is not already set up for packaging.
-
Download the upstream source tarball. (upstream source = the one from the software’s original developers)
-
Rename to
<source_package>_<upstream_version>.orig.tar.gz
(example:simgrid_3.6.orig.tar.gz
) -
Untar the source tarball.
-
Rename the resulting directory to
<source_package>-<upstream_version>
. (example:simgrid-3.6
) -
cd
<source_package>-<upstream_version> && dh_make
(from thedh-make
package). There are some alternatives todh_make
for specific sets of packagesdh-make-perl
,dh-make-php
, ... -
dh_make
will create thedebian/
directory and populate all necessary files with default values.