Building Gaim 2.0 Beta 3 on Debian Unstable

Gaim 1.5 was annoying me. Every time one of my IM accounts got disconnected it would pop up a window, stealing keyboard focus, just to tell me it was reconnecting. I couldn't find any way to stop it, other than installing Gaim 2.0. I run Debian unstable, which still has version 1.5, but I noticed that Gaim 2.0 had been packaged for Ubuntu Edgy, so decided to build from the Ubuntu source package. I built it as follows:

Install the compiler and other required packages:

sudo apt-get install build-essential checkinstall \
  $(wget -O-
    http://archive.ubuntu.com/ubuntu/pool/main/g/gaim/gaim_2.0.0+beta3-4ubuntu2.dsc |
      grep '^Build-Depends:' |
        sed -e 's/^Build-Depends: //' -e 's/[(][^)]*[)]//g' -e 's/ *, */ /g')

Make a directory to do the build in, and cd into the directory:

mkdir ~/build-gaim-2

cd ~/build-gaim-2

Download and unpack the source package, then cd into the unpacked source directory:

wget -O- http://archive.ubuntu.com/ubuntu/pool/main/g/gaim/gaim_2.0.0+beta3.orig.tar.gz |
  tar zxf -

cd gaim-2.0.0beta3/

Download and apply the Ubuntu patches to the sources:

wget -O- http://archive.ubuntu.com/ubuntu/pool/main/g/gaim/gaim_2.0.0+beta3-4ubuntu2.diff.gz |
  zcat |
    patch -p1

Run ./configure to generate Makefiles and header files:

./configure

Do the compilation and linking:

make

Use checkinstall to build and install a debian package:

sudo checkinstall

This is optional - remove everything, leaving just the installed package:

cd; rm -fr ~/build-gaim-2


dooglus > building gaim