Debian package development - enGits/engrid GitHub Wiki


Table of Contents

Dependencies

Needs certain packages to be installed:

sudo apt-get install debhelper cdbs libqt4-dev libqt4-opengl-dev libvtk5-dev libvtk5-qt4-dev libnglib-dev libnetcdf-dev libcgns-dev

Build Debian Package

For building the packages, run in enGrid's main folder (hint: builds with 4 cores with this option):

dpkg-buildpackage -j4
Note: If you're planning on uploading this later on to your own PPA, then you could add the respective options:
  • -sa if it's the first package you're going to build.
  • if updating an already existing package, change -sa to -sd.
  • Both of these options require that you have a secret key setup. Check section Build Debian Package for PPA for more information.
    Either way, you'll need the -k option for using it (as described at the end of the page Building a source package).
Modifications necessary for doing this with:
  • enGrid 1.5-dev are in the branch windows
  • enGrid 1.4 are in the branch windows-1.4
  • enGrid 1.3 are in this remote branch: sandbox-1.3 at wyldckat's fork
    • Caution: this branch is very experimental. It also requires that the command above should be executed after you've successfully manually built enGrid, so that the environment is already prepared for building.

Configuring Debian Files

As for figuring out how to configure files, details aren't available on this page yet. The simplest is to use the following command to see what changes have been made over time:

gitk debian

Build Debian Package for PPA

This section is more dedicated to the idea of actually uploading packages to https://launchpad.net for it to build them.

Needs additional packages to be installed:

sudo apt-get install devscripts

The instructions below require that you jump all of the hoops at https://launchpad.net before you can proceed.

Now, from inside the main enGrid source code folder (please use a clean clone/checkout):

  • Building original package:
    debuild -S -sa
  • Building diff package (requires the original to be in the parent folder):
    debuild -S -sd
  • For more about them, read: Building a source package
  • For both you'll need the -k option for using either one (as described at the end of the page Building a source package).
Warning: If you use dpkg-buildpackage and debuild, these will generate conflicting packages, so be careful! Remove all relevant packages from the parent folder before using either one of these commands!

Reading material about PPA

Known enGrid PPAs

This is a list of the currently know PPAs that provide enGrid:

Notes

TODO

  1. Check where to place Blender scripts, depending on version as well.
    Note: It's hard to define. Going to be somewhat lazy and place them at /usr/share/blender/scripts/engrid.
⚠️ **GitHub.com Fallback** ⚠️