# $Id: PKGBUILD 91711 2013-05-26 13:45:28Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Thomas S Hatch # Contributor: Jelle van der Waa pkgbase=python-pymongo pkgname=('python-pymongo' 'python2-pymongo') pkgver=2.5.1 pkgrel=1 pkgdesc='Python driver for MongoDB' arch=('x86_64' 'i686') license=('APACHE') url='http://pypi.python.org/pypi/pymongo/' makedepends=('python-distribute' 'python2-distribute') source=("http://pypi.python.org/packages/source/p/pymongo/pymongo-$pkgver.tar.gz") sha256sums=('85949837c807b19af6c3972e311a6eaaae6b2b6e15daa1d207a296b8d2027d36') build() { cd "$srcdir" cp -a "pymongo-$pkgver" "pymongo2-$pkgver" } package_python2-pymongo() { depends=('python2') cd "$srcdir/pymongo2-$pkgver" python2 setup.py install --root="$pkgdir" --optimize=1 } package_python-pymongo() { depends=('python') cd "$srcdir/pymongo-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 } # vim:set ts=2 sw=2 et: