updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / python-sleekxmpp-poezio / PKGBUILD
blobd2c352c3d78df6841392765a1667de24d498b809
1 # Maintainer: Mathieu Pasquet <mathieui@mathieui.net>
2 # Contributor: Mathieu Pasquet <mathieui@mathieui.net>
4 pkgname=python-sleekxmpp-poezio
5 pkgver=20111026
6 pkgrel=1
7 pkgdesc="A XMPP library written for Python 3.x (with 2.6 compatibility) - Poezio branch"
8 arch=(any)
9 url="http://github.com/fritzy/SleekXMPP"
10 license=('MIT')
11 depends=('python')
12 makedepends=('git')
13 conflicts=('python-sleekxmpp', 'python-sleekxmpp-devel')
14 provides=('python-sleekxmpp', 'python-sleekxmpp-devl')
15 optdepends=('python-dnspython-hg: SRV records')
17 _gitroot="git://github.com/louiz/SleekXMPP.git"
18 _gitname="sleekxmpp"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
33   cd "$srcdir/$_gitname"
35   python setup.py install --root=$pkgdir/ --optimize=1