Filip,

No matter where you get Geany from, the following command should pull in what you need to compile the Geany package from source:

  $ sudo apt-get build-dep geany

There are nightly package builds of the SVN trunk available for Debian; they should work fine in Ubuntu.  Jump onto #geany on freenode and ping eht16 for the repo details.

Hope this helps,

Mars