summaryrefslogtreecommitdiff
path: root/community/python-greenlet/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python-greenlet/PKGBUILD')
-rw-r--r--community/python-greenlet/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/python-greenlet/PKGBUILD b/community/python-greenlet/PKGBUILD
new file mode 100644
index 000000000..5d123cf72
--- /dev/null
+++ b/community/python-greenlet/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 104937 2014-01-28 14:10:19Z fyan $
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Ralf Schmitt <ralf@systemexit.de>
+
+pkgbase=python-greenlet
+pkgname=(python-greenlet python2-greenlet)
+pkgver=0.4.2
+pkgrel=2
+pkgdesc="Lightweight in-process concurrent programming"
+license=("MIT")
+url="http://pypi.python.org/pypi/greenlet"
+makedepends=('python' 'python2')
+source=("http://pypi.python.org/packages/source/g/greenlet/greenlet-${pkgver}.zip")
+arch=('i686' 'x86_64')
+
+prepare() {
+ cp -r greenlet-$pkgver greenlet-$pkgver-py2
+}
+
+build() {
+ cd greenlet-$pkgver
+ python setup.py build
+
+ cd ../greenlet-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-greenlet() {
+ depends=('python')
+
+ cd greenlet-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+ install -Dm0644 LICENSE.PSF "$pkgdir/usr/share/licenses/$pkgname/LICENSE.PSF"
+}
+
+package_python2-greenlet() {
+ depends=('python2')
+
+ cd greenlet-$pkgver-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+ install -Dm0644 LICENSE.PSF "$pkgdir/usr/share/licenses/$pkgname/LICENSE.PSF"
+}
+
+sha512sums=('9596b740921e4a80bcb43adb725a7a4ea428dadc10ba55f8840837ba685b010c273a4a2bd62c5ba4bfdf27ce87c914a83714d762bacafb8e0a3cd7e2a9675992')