You're right, the v shouldn't be there, so strip it. Just add s/^v// to the sed command.
The pkgver functions in the Wiki are just suggestions, they need customized for the individual repo you're using.
Ok, added it, and now the version is just 0.8.2.r218.g5eed859.
If you say it's OK, I'll upload it then.
Thanks for all! Bruno