updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python-sleekxmpp / PKGBUILD
blobbf10a188ee1e1820a8f0c4a17d520e8b26bcc798
1 # Maintainer: Jonathan Arnold <jdarnold@buddydog.org
3 pkgname=python-sleekxmpp
4 pkgver=20101116
5 pkgrel=1
6 pkgdesc="An XMPP library written for Python 3.x (with 2.6 compatibility)"
7 arch=(any)
8 url="http://github.com/fritzy/SleekXMPP"
9 license=('MIT')
10 depends=('python')
11 makedepends=('git')
12 options=(!emptydirs)
13 optdepends=('python-dnspython-git: SRV support')
15 _gitroot="git://github.com/fritzy/SleekXMPP.git"
16 _gitname="sleekxmpp"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
31   cd "$srcdir/$_gitname"
32   python setup.py install --root=$pkgdir/ --optimize=1 || return 1