Skip to content

Packaging for Debian and derivatives

Gianluca Pernigotto edited this page Jun 19, 2024 · 4 revisions

This wiki page explains how to:

  • Make a Videomass debian source package from upstream source code (for distribution)
  • Build and install a .deb file in your Debian or derivative OS

Required dependencies for building:

  • Python >= 3.8.0
  • python3-pip
  • python3-all
  • debhelper
  • dh-python
  • devscripts
  • debmake
  • pybuild-plugin-pyproject
~# apt update && apt install python3-pip python3-all debhelper dh-python devscripts debmake pybuild-plugin-pyproject

  • Inside the repo dir build a Debian package from the upstream source:
    ~$ debmake --tar -b:python3

  • Edit changelog file
    Inside videomass-?.?.?/debian edit the changelog file and replace UNRELEASED row with specified Debian release e.g. unstable, bionic, focal, etc. then save it.

  • To generate a debian source package type:
    $ debuild -S (you could add the -sa option to digitally sign)

  • Instead, to make a .deb file (aka binary package) type:
    $ debuild -b (you could add the -sa option to digitally sign)

    Important:

    Do this on the same source package for each target distribution i.e Debian, Ubuntu, Mint, etc.
    Do not distribute precompiled binary files (.deb) for all debian or derivative versions.

  • This installs it
    $ cd ..
    $ sudo dpkg -i videomass_?.?.?-1_all.deb

Resources:

Clone this wiki locally