Building HandbrakeCLI from source on Debian Wheezy

Install prerequisite packages for the build:
sudo apt-get install subversion yasm build-essential autoconf libtool zlib1g-dev libbz2-dev libxml2-dev libogg-dev libvorbis-dev libsamplerate-dev libfribidi-dev libfreetype6-dev libfontconfig1-dev libass-dev libmp3lame-dev libx264-dev intltool libglib2.0-dev libdbus-glib-1-dev libgtk-3-dev libgudev-1.0-dev libwebkitgtk-3.0-dev libnotify-dev libappindicator-dev libtheora-dev

Checkout the code from svn:
svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk

Enter the directory and run configure:
cd hb-trunk/
./configure –disable-gtk –launch

Enter build directory and run make:
cd build
sudo make install

We’re done! Run Handbrake and try it out:
HandBrakeCLI