つまり、パッケージをビルドするだけで、gitリポジトリからの最新バージョンになります。これはによって自動的に処理されmakepkgます。
パッケージのPKGBUILDファイルを読み取ると-git(たとえばadonthell-gitの場合)、次のように表示されます。
cd $_gitname && git pull origin
msg "The local files are updated."
したがって、実行されるたびにmakepkg、gitリポジトリから最新バージョンがダウンロードされます。
pkgverので、パラメータがあるmakepkgにバージョン番号が必要ですPKGBUILDし、最終的なパッケージでは、ここで最も意味のあるのは日付です。
gitのパッケージであることが検出されたmakepkg場合は、それに応じて特殊なケースを処理します。
(1687〜1771行目makepkg、関数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)
[他の例切り取らロットのdarcs、hg、svn等...]
(makepkg関数1773-1792の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.:
したがって、バージョン番号がビルド時の日付であるパッケージが作成されます。