1 pkgname=django-facebook-git
4 pkgdesc="Facebook open graph api implementation using the Django web framework in python."
6 url="https://github.com/tschellenbach/Django-facebook"
8 depends=('python2' 'django')
11 _gitroot="https://github.com/tschellenbach/Django-facebook.git"
12 _gitname="Django-facebook"
16 msg "Connecting to GIT server...."
18 if [ -d $_gitname ] ; then
19 cd $_gitname && git pull origin
20 msg "The local files are updated."
25 msg "GIT checkout done or server timeout"
26 msg "Starting make..."
28 rm -rf "$srcdir/$_gitname-build"
29 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30 cd "$srcdir/$_gitname-build"
33 python2 setup.py build || return 1
34 python2 setup.py install --root=$pkgdir --install-data=/usr/share/$pkgname || return 1