Packaging:Basic Process

From OpenLP
Jump to: navigation, search

This is the basic packaging process that almost all the packaging systems will need to go through.

Getting The Source

The packager needs to get hold of the source code. There are two ways of doing this. Firstly, you can check it out of Bazaar directly, like so:

$ bzr co lp:openlp trunk

Or alternately, you can download the source tarball from

$ wget

Preparing For The Build

Once you've checked out the code, you need to prepare OpenLP for the build.

Firstly, you'll need to compile the .ts files into .qm files, like so:

$ for TSFILE in *.ts; do lrelease $TSFILE `basename $$TSFILE .ts`.qm; done

In the debian package build, this is done via a Makefile, in the "build" target. If your packaging system supports it, it is recommended to get the packaging system to take care of this. Don't forget to add the packaging containing lrelease to the build requirements.