This post explains how to compile Pidgin from source, but not the stable Pidgin releases available for download on the website; instead, I'm talking about the latest development Pidgin version (often called "Pidgin MTN"), available via Monotone (a distributed version control system). See this post regarding compiling Monotone from source.