sudo apt-get source -b package[/code]

will build the package from source.