Step 1: Get a version of the upstream source

From the repository

First, make sure that you've got the tools for the bazaar (bzr) repository,

sudo apt-get install build-essential bzr

Then, get the source,

bzr branch lp:me-tv me-tv
cd me-tv
./autogen.sh

The last step converts the bzr source into an equivalent upstream source. Now, go to step 2.

From a Release Folder

Navigate to the release directory and download the latest version. Extract and enter the source directory,

tar zxvf me-tv-*.tar.gz
cd me-tv-*

Step 2: Building Me TV on Debian/Ubuntu

Install tools:

sudo apt-get install build-essential gettext debhelper autotools-dev libxml-parser-perl pkg-config cdbs devscripts libtool intltool

Install libraries:

sudo apt-get install libgnomemm-2.6-dev libgnomeuimm-2.6-dev libgtkmm-2.4-dev libglademm-2.4-dev libxtst-dev libgnet-dev libsqlite3-dev libvlc-dev

It's best if you uninstall any other version of Me TV first to avoid confusion. Then,

./configure
make
sudo make install

If you would like to uninstall your newly built Me TV use,

sudo make uninstall