Add git to makedepends and fix pkgver

git is not part of base-devel so it cannot be assumed to be installed on a clean build server.
Allow pkgver to work without annotated tags.