Resumindo : basta compilar o pacote e ela será a versão mais recente do repositório git; isso é tratado automaticamente por makepkg.
Ao ler os PKGBUILDarquivos dos -gitpacotes (por exemplo, para adonthell-git ), você pode ver:
cd $_gitname && git pull origin
msg "The local files are updated."
Assim, toda vez que makepkgé executado, ele baixa a versão mais recente do repositório git.
O pkgverparâmetro é porque makepkgrequer um número de versão no PKGBUILDe no pacote final; uma data é o que faz mais sentido aqui.
Se for detectado que é um pacote do git, makepkglida com o caso especial de acordo:
(linhas 1687-1771 de makepkg, função devel_check)
elif [[ -n ${_gitroot} && -n ${_gitname} ]] ; then
if ! type -p git >/dev/null; then
warning "$(gettext "Cannot find the %s binary required to determine latest %s revision.")" "git" "git"
return 0
fi
msg "$(gettext "Determining latest %s revision...")" 'git'
newpkgver=$(date +%Y%m%d)
[lotes snipped de outros casos para darcs, hg, svnetc ...]
(linhas 1773-1792 de makepkg, função devel_update)
# This is lame, but if we're wanting to use an updated pkgver for
# retrieving svn/cvs/etc sources, we'll update the PKGBUILD with
# the new pkgver and then re-source it. This is the most robust
# method for dealing with PKGBUILDs that use, e.g.:
portanto, você acaba com um pacote com o número da versão como a data em que o criou.