Packaging workflow
- Rename the upstream tarball
- Unpack the upstream tarball
- Add the debian packaging files
- Build the package
- 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