There's a wiki page which has instructions for compiling under Ubuntu as well as a whole heap of other Distros/OS's. I suggest that you go there instead. I won't be updating this post any further.
Quite a few people have been trying to compile/install Unvanquished under Ubuntu. Hopefully this guide will help them. Any corrections are more then welcome.
====Downloading Source====
Get the latest source from https://github.com/TremZ/Unvanquished/. To do so you'll need to install git
sudo apt-get install git
Then open Terminal and download the source code (I'm downloading it to my home folder but it can go anywhere)
git clone git://github.com/TremZ/Unvanquished.git
Now just navigate into the directory with
cd Unvanquished
====Compiling====
First we need to install the necessary packages to run
sudo apt-get install cmake libfreetype6-dev libpng12-dev libjpeg8-dev libsdl1.2-dev libopenal-dev libgmp-dev libglew1.6-dev cmake-curses-gui build-essential libcurl4-openssl-dev libogg-dev libvorbis-dev
Now we'll make the directory where we'll build Unvanquished and navigate into it
mkdir build && cd build
Next we'll create the necessary makefiles. I've disabled XVID, WEBP and theora but if you have the relevant dev packages feel free to enable them.
cmake -D USE_CIN_XVID:BOOL=OFF -D USE_WEBP:BOOL=OFF -D USE_CIN_THEORA:BOOL=OFF ..
Now just run "make" in the terminal. Wait a few minutes for the build to complete.
====Adding The Assets====
All we need now is the pak0.pk3, pak1.pk3 and the map pack. So download them from
http://tremz.com/downloads/main/pak0.pk3 (pak0.pk3)
http://sourceforge.net/projects/unvanqu ... 3/download (pak1.pk3)
http://sourceforge.net/projects/unvanqu ... z/download (map pack)
Place pak0.pk3 into build/main and unzip the map pack and place them in build/main as well.
Everything should work now so just ./daemon.i386 and enjoy Unvanquished.
====LIBRARIES THAT CAN BE DISABLED====
If for whatever reason you don't want to install any more libraries then absolutely necessary (or maybe a particular library is playing up) then here's a list of which libraries are not necessary and what features you'll lose if you disable them
*curses -- You won't be able to use ccmake (not to be confused with cmake) but this library doesn't affect gameplay. Disable with -D USE_CURSES:BOOL=OFF
Ogg/Vorbis -- You won't get the background music for the menu anymore and maybe some sound effects for certain maps. Disable with -D USE_CODEC_VORBIS:BOOL=OFF
OpenAl -- If this isn't found then sdl sound is used instead. Should have no major impact on gameplay. Disable with -D USE_OPENAL:BOOL=OFF
====IMPORTANT NOTE====
Some Ubuntu users have reported crashing whenever they die. The work around is to build a debug release.