Quick Guidelines for building an AUTOPACKAGE for Gajim

First of all, you should install autopackage development tools on your machine. To do that, visit http://autopackage.org/download-tools.html and download autopackage-devel-X.Y.Z.x86.package. Install it by executing it (note: .packages are bash-scripts)

> sh autopackage-devel-X.Y.Z.x86.package

You dont need to install it as ROOT user. Install it as a user.

When the setup finishes, you should be ready to build any Autopackage. We are interested only for Gajim (remember?) so download the latest Gajim source tarball. Assumming that you have downloaded gajim-X.Y.tar.bz2, unpack the archive. You should now have a directory named gajim-X.Y. Now you have to get the directory named "autopackage" from the SVN repository of Gajim. Download it and copy it inside "gajim-X.Y". So now you must have a new directory named "autopackage" in "gajim-X.Y". Excellent! Open 'Makefile' from "gajim-X.Y" with your favorite text editor and change the value of the GAJIM_AP variable from 0 to 1. Save and exit. Next you have to open a console. Cd to "gajim-X.Y" directory. To build the package you have to run the 'makeinstaller' tool. 'makeinstaller' will first look for the file 'default.apspec' inside "autopackage" directory. Open 'default.apspec' with an editor. This file specifies how to build the .package and what to include. As you see it is a text file. In the [Meta] section there is all the info for the package (its name, its description, who build it, what version it is etc). Change the value of 'SoftwareVersion?' to the Gajim version you are building. The other sections are hard to be explained here. You should study the autopackage documentation on how to create autopackages to understand what they do. So for now save this file and exit. Now run the 'makeinstaller' command (this is an autopackage tool):

> makeinstaller

The build process should begin! If you have all the headers/libraries/tools to build Gajim then at the end of the build process 'makeinstaller' will create the desired autopackage file.

P.S. These instructions were tested for the 0.10 release of Gajim