I use CVS and not Mercurial because I don't want to add to but rather only build the latest CSV versions.
First get the code:
cvs -d :pserver:firstname.lastname@example.org:/cvsroot co -r HEAD mozilla/client.mk
You will need a .mozconfig file in your home directory which will handle all the configure options.
Then to get the source code to build:
make -f client.mk checkout
Then you'll build
make -f client.mk build
And to create your .deb at this point you'll just:
checkinstall -D make install
Be sure to enter a version number and change anything you see fitting. Without a version number the build will fail.
Now you have a freshly compiled Firefox.
assuming you named the package Firefox, you'll remove it with:
This worked fine for me but I need to know how to get it to play nicely with Flash and how to add the search bar for Debian's repositories.