diff options
Diffstat (limited to 'community/python-pymongo/PKGBUILD')
-rw-r--r-- | community/python-pymongo/PKGBUILD | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/community/python-pymongo/PKGBUILD b/community/python-pymongo/PKGBUILD index 867bc37b2..7dc20c761 100644 --- a/community/python-pymongo/PKGBUILD +++ b/community/python-pymongo/PKGBUILD @@ -1,23 +1,37 @@ -# $Id: PKGBUILD 75966 2012-09-07 11:19:50Z arodseth $ +# $Id: PKGBUILD 78242 2012-10-17 10:26:39Z allan $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Thomas S Hatch <thatch45@gmail.com> -pkgname=python-pymongo +pkgbase=python-pymongo +pkgname=('python-pymongo' 'python2-pymongo') pkgver=2.3 -pkgrel=1 +pkgrel=2 pkgdesc='Python driver for MongoDB' arch=('x86_64' 'i686' 'mips64el') license=('APACHE') url='http://pypi.python.org/pypi/pymongo/' -depends=('python') -makedepends=('python-distribute') +makedepends=('python-distribute' 'python2-distribute') source=("http://pypi.python.org/packages/source/p/pymongo/pymongo-$pkgver.tar.gz") sha256sums=('8e43fdd7ea8e2aa965791af1b6e24186248023c6fde70092d9631b1d9150b1dc') -package() { +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: |