1 # Contributor: Facebook Inc. <http://developers.facebook.com>
3 pkgname=python2-facebook-sdk-git
6 pkgdesc="Facebook Platform Python SDK."
8 url="http://developers.facebook.com"
11 _gitroot='git://github.com/facebook/python-sdk.git'
17 msg 'Connecting to GIT server....'
18 if [ -d '${srcdir}/${_gitname}' ] ; then
19 cd ${_gitname} && git pull --rebase
24 msg 'GIT checkout done or server timeout'
25 if [ -d $_gitname-build ]; then
26 msg 'Removing old build directory'
27 rm -rf $_gitname-build
30 msg 'Copying repository to another build directory'
31 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
34 cd $srcdir/$_gitname-build
36 msg 'Running setup.py'
37 python2 setup.py build || return 1
38 python2 setup.py install --root=$pkgdir || return 1