updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / facebook-sdk / PKGBUILD
blobadcd9f7c17596d90714c12acc3665708900f98eb
1 pkgname=facebook-sdk
2 pkgver=20111221
3 pkgrel=1
4 pkgdesc="Facebook Platform Python SDK"
5 arch=('any')
6 url="https://github.com/pythonforfacebook/facebook-sdk"
7 license=('MIT')
8 depends=('python2')
9 makedepends=('git')
11 _gitroot="https://github.com/pythonforfacebook/facebook-sdk.git"
12 _gitname="facebook-sdk"
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