Debian packages
---------------

It is possible to build packages for GNU/Linux distributions that use 
the deb package format directly from a subversion checkout.

The files in ./debian are used to build it. You will need to install the 
packages devscripts, dpkg-deb, debhelper, cdbs, autotools-dev, 
libfontconfig1-dev and  libfreetype6-dev.

Check the subversion revision <revision>
Run dch -i (this updates debian/changelog)
Mention any changes you have made in the changelog entry
set the distribution to the distribution you are building for
change the name and email address to your own
set the package version to 1:2.1+<revision>svn-1
e.g 1:2.1+0360svn-1
N.B. for this package revision must have 4 digits

it is strongly advised that you build 'out of tree' i.e. not in the same 
directory as the source for normal building. So in this other directory 
run configure

../graphite/configure

N.B. the path to configure must be a relative path, not an absolute path 
like /opt/svn/graphite/configure. This is a known limitation.

In that directory run make distcheck. This makes sure that the library 
does build, install and uninstall ok. It also creates a source tarball. 
Copy this tarball to the directory below the source and name it as 
silgraphite2.0_version.orig.tar.gz

e.g. silgraphite2.0_2.1+0360svn.orig.tar.gz

change into the source directory

If you have set pbuilder up you can use it to build the package. You 
must use the debuild option -i.svn so that it doesn't complain about the 
subversion directories.

pdebuild --debuildopts -i.svn -- --basetgz /var/cache/pbuilder/base-distro.tgz

or you can just run debuild to create a package for testing on your 
local system

You may need to set the pbuilder chroot to know about packages.sil.org 
to satisfy some build dependencies. Instructions for this will follow.

Install the package and check it works. Then upload it to 
packages.sil.org if you have permission to upload to there.
