summaryrefslogtreecommitdiff
path: root/community/python2-gevent/PKGBUILD
blob: 7cffa013732f8da53ef9c963427b4513c9c20b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $Id: PKGBUILD 70305 2012-05-04 08:21:08Z mtorromeo $
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Ralf Schmitt <ralf@systemexit.de>

pkgname=python2-gevent
pkgver=1.0
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Python network library that uses greenlet and libev for easy and scalable concurrency"
license=("MIT")
url="http://www.gevent.org/"
depends=('python2-greenlet')
makedepends=('git' 'cython2')
provides=('python2-gevent-beta')
conflicts=('python2-gevent-beta')
replaces=('python2-gevent-beta')
source=("git://github.com/surfly/gevent.git#tag=$pkgver")

build() {
	cd gevent

    LIBEV_EMBED=1 \
    CARES_EMBED=1 \
    CYTHON=cython2 \
    PYTHON=python2 \
	python2 setup.py build
}

package() {
	cd gevent
	python2 setup.py install -O1 --root="$pkgdir"
	install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

md5sums=('SKIP')