1 # Maintainer: Hervé Cauwelier <herve/oursours/net>
3 pkgname="python2-libgit2-git"
6 pkgdesc="Python bindings for libgit2 (pygit2)"
7 url="https://github.com/libgit2/pygit2"
8 depends=('python2' 'libgit2-git' 'openssl' 'zlib')
9 makedepends=('git' 'libgit2-git')
10 provides=('python2-libgit2' 'pygit2')
11 conflicts=('python2-libgit2' 'pygit2')
15 _gitroot="https://github.com/libgit2/pygit2.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
40 python2 setup.py install --root=${pkgdir} || return 1