aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-zmq/APKBUILD
blob: b34fcae43e545278d08591fbd1bfe4b5ffc5735a (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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-zmq
_pkgname=pyzmq
pkgver=18.0.0
pkgrel=0
pkgdesc="Python bindings for ZeroMQ"
url="https://pypi.python.org/pypi/pyzmq"
arch="all"
license="LGPL-3.0-or-later BSD"
depends=""
makedepends="python2-dev python3-dev py-setuptools zeromq-dev"
install=""
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build
	python3 setup.py build
}

package() {
	mkdir -p "$pkgdir"
}

_py() {
	local python=$1
	pkgdesc="$pkgdesc - $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

_py2() {
	replaces="$pkgname"
	_py python2
}

_py3() {
	_py python3
}


sha512sums="6f294b0fe89734e9829a8a24a7306f093e823b201e26a5e2fdba3ed8bf7e367146c8d12115b6471366415c41c520e597b8378abaeafb095a9850444f9b57981d  pyzmq-18.0.0.tar.gz"