packages/pkgbuild: use ${_gitbranch} when cloning a Git repository.