updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-couchdb-svn / PKGBUILD
blob9dbb7621a19d3e4fcc836d34628273a30f5a52be
1 # Contributor: palbo <palbof@gmail.com>
3 pkgname=python-couchdb-svn
4 pkgver=147
5 pkgrel=1
6 pkgdesc="Python library for working with CouchDB"
7 url="http://code.google.com/p/couchdb-python/"
8 license=(bsd)
9 arch=(i686)
10 depends=('python>=2.6' 'httplib2' 'couchdb')
11 makedepends=('subversion')
12 conflicts=()
13 provides=('python-couchdb')
15 source=()
16 md5sums=()
18 _svntrunk=http://couchdb-python.googlecode.com/svn/trunk/
19 _svnmod=python-couchdb
21 build() {
22   cd $startdir/src
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
30   msg "SVN checkout done or server timeout"
32   cd $_svnmod
33   python setup.py install --root=$startdir/pkg
35   mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
36   install -D -m644 COPYING $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
38 # vim:syntax=sh