updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python2-facebook-sdk-git / PKGBUILD
blob262ce62e50275ac24b2ff9ffba7887c3c7ed2620
1 # Contributor: Facebook Inc. <http://developers.facebook.com>
3 pkgname=python2-facebook-sdk-git
4 pkgver=20110130
5 pkgrel=1
6 pkgdesc="Facebook Platform Python SDK."
7 arch=('any')
8 url="http://developers.facebook.com"
9 license=()
10 depends=('python2')
11 _gitroot='git://github.com/facebook/python-sdk.git'
12 _gitname='python-sdk'
13 source=()
14 md5sums=()
16 build() {
17     msg 'Connecting to GIT server....'
18     if [ -d '${srcdir}/${_gitname}' ] ; then
19         cd ${_gitname} && git pull --rebase
20     else
21         git clone ${_gitroot}
22     fi
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
28     fi
30     msg 'Copying repository to another build directory'
31     cp -r $srcdir/$_gitname $srcdir/$_gitname-build
32     
33     msg 'Starting 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