aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-gevent/APKBUILD
blob: 2de49a0e14bb4be8536ff072d760c8ded3153f9d (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
# Contributor: Michael Zhou <zhoumichaely@gmail.com>
pkgname=py-gevent
_pkgname=${pkgname#py-}
pkgver=1.1.2
pkgrel=0
pkgdesc="Python library for seamless coroutine-based concurrency"
url="http://gevent.org/"
arch="noarch"
license="MIT"
depends=""
makedepends="python2-dev py-setuptools python3-dev libevent-dev file"
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="https://github.com/gevent/gevent/releases/download/v$pkgver/$_pkgname-$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 - $python"
	arch="all"
	install_if="$pkgname=$pkgver-r$pkgrel $python" 	
	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

_py2() {
	_py python2
	replaces="$pkgname"
	depends="py2-greenlet"
}

_py3() {
	_py python3
	depends="py3-greenlet"
}


md5sums="bb32a2f852a4997138014d5007215c6e  gevent-1.1.2.tar.gz"
sha256sums="cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c  gevent-1.1.2.tar.gz"
sha512sums="6b0a381486b0d8eaf446890bc6339ee1185ad666c11c8d56e25d148f8c6f2d7be955423c763486d1276d8d34cec933706eb3752b0894b3f5444f93fafd62cf3c  gevent-1.1.2.tar.gz"