public
Created

alternative couchdb python driver

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# Maintainer: Guan 'kuno' Qing <neokuno AT gmail DOT com>
 
pkgname=python2-couchdb-hg
_realname=couchdb-python
pkgver=20110426
pkgrel=1
pkgdesc="Python library for working with CouchDB, hg version."
url="http://code.google.com/p/couchdb-python/"
license=('BSD')
arch=(any)
depends=('python>=2.7' 'python2-httplib2' 'couchdb')
makedepends=('python2-distribute' 'mercurial')
conflicts=('python-couchdb-svn')
provides=()
replace=('python-couchdb')
_hg="https://couchdb-python.googlecode.com/hg/"
 
build() {
cd "$srcdir" || return 1
 
if [ ! -d "$_realname"/.hg ]; then
hg clone "$_hg" "$_realname"
else
hg pull && hg update
fi
 
cd "$_realname" || return 1
python2 setup.py install --root=$pkgdir --optimize=1
}
 
# vim:ts=2:sw=2:et

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.