~carloratm

The personal web space of Carlo Ascani.

Packaging workflow

  1. Rename the upstream tarball
  2. Unpack the upstream tarball
  3. Add the debian packaging files
  4. Build the package
  5. Test the package

Rename the upstream tarball

The name in is basic form is built as: <source_package_name>_<upstream_version_number>.orig.tar.gz

source_package_name should be all lower case, and can contain letters, digits, and dashes.

Unpack the upstream tarball

The source must be unpacked in a directory called <source_package_name>-<upstream_version_number>

Note the hypen!

Add the debian packaging files

debian/changelog

To generate the changelog, use dch. Example:

dch --create -v <upsteam_version>-<debian_version> -u low --package <source_package_name>

debian/control

Source: <source_package_name>
Maintainer: Carlo Ascani <carlotm@protonmail.com>
Section: misc
Priority: optional
Standards-Version: 4.7.0
Build-Depends: debhelper-compat (= 13)

Package: somename
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: some short description
a longer description of the binary package.

The first section is the source package, following sections are the binary packages related to the source package.

debian/copyright

TODO.

debian/rules

#!/usr/bin/make -f

%:
    dh $@

debian/source/format

3.0 (quilt)

Build the package

debuild -us -uc