updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / django-facebook-git / PKGBUILD
blob1cc086f4611f923d8b495b3897c2091e87754c17
1 pkgname=django-facebook-git
2 pkgver=20111221
3 pkgrel=1
4 pkgdesc="Facebook open graph api implementation using the Django web framework in python."
5 arch=('any')
6 url="https://github.com/tschellenbach/Django-facebook"
7 license=('MIT')
8 depends=('python2' 'django')
9 makedepends=('git')
11 _gitroot="https://github.com/tschellenbach/Django-facebook.git"
12 _gitname="Django-facebook"
14 build() {
15         cd "$srcdir"
16         msg "Connecting to GIT server...."
18         if [ -d $_gitname ] ; then
19                 cd $_gitname && git pull origin
20                 msg "The local files are updated."
21         else
22                 git clone $_gitroot
23         fi
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"
32         cd $srcdir/$_gitname
33         python2 setup.py build || return 1
34         python2 setup.py install --root=$pkgdir --install-data=/usr/share/$pkgname || return 1
35