Skip to content

Instantly share code, notes, and snippets.

@kuno
Created April 26, 2011 04:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kuno/941779 to your computer and use it in GitHub Desktop.
alternative couchdb python driver
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment