updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / python2-jsonrpc-bzr / PKGBUILD
blob334d5d21d72a4ed3b828f088d9eeb00adebf4d8f
1 # Maintainer: Artefact2 <artefact2@gmail.com>
3 pkgname=python2-jsonrpc-bzr
4 pkgver=6
5 pkgrel=1
6 pkgdesc="A Python2 JSON-RPC implementation."
7 url="http://json-rpc.org/wiki/python-json-rpc"
8 license="LGPL"
9 arch=(i686 x86_64)
10 depends=('python2')
11 makedepends=('bzr')
12 source=('001-jsonrpc-2.0-no-error-in-response.patch')
13 md5sums=('e1fd9805e8eaeec5ec16c9e83dba5570')
15 _bzrrepo=http://bzr.json-rpc.org/trunk
16 _bzrmod=trunk/python-jsonrpc
18 build() {
19     cd $srcdir
21     msg "Connecting to the server...."
23     if [ ! -d ${_bzrmod} ]; then
24         bzr co ${_bzrrepo}
25     else
26         bzr up ${_bzrmod}
27     fi
29     rm -rf build
30     cp -r ${_bzrmod} build
31     cd build
33     msg "BZR checkout done or server timeout"
35     patch -p0 < ${startdir}/001-jsonrpc-2.0-no-error-in-response.patch
37     mkdir -p "$pkgdir/usr/lib/python2.7/site-packages/"
39     python2 setup.py install --install-purelib="$pkgdir/usr/lib/python2.7/site-packages/"