"This article will show how you can rebuild any debian package. You might need to rebuild a package for various reasons: add/remove some compilation options, make some changes to the sources, or compile a newer version from testing/sid into stable, etc. Regardless of your reason, this can be done very easy using Debian tools.
"First you will need to have some basic debian building tools installed:
apt-get install devscripts build-essential
..."