Clone the tmk repository (i.e. git clone git://github.com/sparkintegration/tmk.git) or download the zipfile (https://github.com/sparkintegration/tmk/zipball/master)
ln -sf <path to tmk repository>/src/tmk /usr/local/bin/tmk
tmk -os <target os>
For example, "tmk -os osx" to build for os x, or "tmk -os linux" to build for linux.