1 # Contributor: Alexis Robert <alexis.robert@gmail.com>
2 # Contributor: Paul Archan <paul.archan@gmail.com>
7 pkgdesc="The Multiple Git Repository Tool from the Android Open Source Project"
9 url="http://source.android.com/source/git-repo.html"
11 depends=('git' 'python2')
14 source=(python2-patch.diff)
15 md5sums=('816628bf070c3315e1be24285ee9a083')
19 _gitroot="https://android.googlesource.com/tools/repo.git"
25 msg "Connecting to GIT server...."
27 if [ -d $_gitname ] ; then
28 cd $_gitname && git pull origin
29 msg "The local files are updated."
31 git clone --depth=1 -b $_gitbranch $_gitroot $_gitname
34 msg "Patching for Python2 ..."
35 patch -p0 -i $srcdir/python2-patch.diff
37 rm -rf $(find "$pkgdir" -type d -name ".git")
41 mkdir -p $pkgdir/usr/bin/ || return 1
42 install -oroot -groot -m0755 $srcdir/$_gitname/repo $pkgdir/usr/bin/repo