You have to read about smudge/clean filters in Git in order to get some iteration of keyword-replacement.
Grok section "Keyword Expansion", where example of expanding $DATE$ keyword explained (and a must reverse-operation). In you case most work of expanding $SOMEKEYWORD$ to version string can be performed by git describe
under the hood, clean part must be implemented by hand (your hand)