summaryrefslogtreecommitdiff
path: root/community/python-pymongo
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/python-pymongo
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/python-pymongo')
-rw-r--r--community/python-pymongo/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/python-pymongo/PKGBUILD b/community/python-pymongo/PKGBUILD
new file mode 100644
index 000000000..56e6020e5
--- /dev/null
+++ b/community/python-pymongo/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 92176 2013-06-02 12:35:50Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Thomas S Hatch <thatch45@gmail.com>
+# Contributor: Jelle van der Waa <jelle@vdwaa.nl>
+
+pkgbase=python-pymongo
+pkgname=('python-pymongo' 'python2-pymongo')
+pkgver=2.5.2
+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=('84ac1da67d0dabc711fa8259324d4e94b26a85411bcf0c12dc80a427d9f93ecc')
+
+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: