Debian package development - enGits/engrid GitHub Wiki
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
For building the packages, run in enGrid's main folder (hint: builds with 4 cores with this option):
dpkg-buildpackage -j4Note: If you're planning on uploading this later on to your own PPA, then you could add the respective options:
-
-saif it's the first package you're going to build. - if updating an already existing package, change
-sato-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-koption for using it (as described at the end of the page Building a source package).
- 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.
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
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
-koption for using either one (as described at the end of the page Building a source package).
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!
- Overview about PPA
- Building a source package
- Uploading a package to a PPA
- GnuPG Basics Explained with Linux GPG Command Examples
This is a list of the currently know PPAs that provide enGrid:
- Detection of VTK location is bias on Ubuntu version. See file debian/rules to see what I mean.
- Tutorials are placed next to the manual.
- Which means that they are located at /usr/share/doc/engrid-doc/.
- enGrid icon is placed in the Education or Engineering menu group, whichever comes first.
- The file "debian/source/format" needs to have
3.0 (native)instead of3.0 (quilt)for at least Ubuntu 11.10 and onward. - Reference link: Debian Manual - Chapter 6. Building the package
- PPA 101: PPA101/20070913
- Has notes about the steps necessary for creating said PPA.
- It's possible to depend on other PPAs for packages. Check: https://help.launchpad.net/Packaging/PPA/BuildingASourcePackage#Depending_on_other_PPAs
- 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.