# Maintainer: Michael Zhou # Contributor: Michael Zhou pkgname=py-gevent _pkgname=${pkgname#py-} pkgver=1.3.4 pkgrel=2 pkgdesc="Python library for seamless coroutine-based concurrency" url="http://gevent.org/" arch="all" license="MIT" depends="py-greenlet" makedepends="python2-dev py-setuptools python3-dev libevent-dev file cython" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { mkdir -p "$pkgdir" } _py() { local python="$1" pkgdesc="$pkgdesc (for $python)" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { replaces="$pkgname" depends="${depends//py-/py2-}" _py python2 } _py3() { depends="${depends//py-/py3-}" _py python3 } sha512sums="9a02dc978a739c38858f2aa8edb6dd9dd9b8a738a65962874efe7b9f7bcf97dc883856f40866d090f64f00883f84f4267732a3b3d380482379977cf71c911b77 py-gevent-1.3.4.tar.gz"