4 pkgdesc="Facebook Platform Python SDK"
6 url="https://github.com/pythonforfacebook/facebook-sdk"
11 _gitroot="https://github.com/pythonforfacebook/facebook-sdk.git"
12 _gitname="facebook-sdk"
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