1 # Contributor: Apkawa <apkawa@gmail.com>
2 pkgname=django-mptt-git
5 pkgdesc="Utilities for implementing Modified Preorder Tree Traversal"
7 url="http://code.google.com/p/django-mptt/"
9 depends=('python2' 'django')
11 provides=('django-mptt')
12 conflicts=('django-mptt')
13 replaces=('django-mptt')
15 _gitroot="http://github.com/django-mptt/django-mptt.git"
16 _gitname="django-mptt"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
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"
39 python2 setup.py build || return 1
40 python2 setup.py install --root=$pkgdir || return 1
41 install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE