1 # Contributor: Chris Eberle <eberle1080@gmail.com>
3 pkgname="python3-dulwich-git"
6 pkgdesc="Pure-Python implementation of the Git file formats and protocols"
7 url="https://github.com/eberle1080/dulwich-py3k"
9 makedepends=('git' 'python-distribute')
10 provides=('python3-dulwich')
11 conflicts=('python-dulwich')
16 _gitroot="git://github.com/eberle1080/dulwich-py3k.git"
18 _snapshot="d9ca7ad2979d7edf361a601ebc4a2c7d94d9059b"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
37 git branch mystable $_snapshot
38 git checkout -f mystable
44 python setup.py install --optimize=1 --root=${pkgdir} || return 1