# Contributor: Valery Kartel # Maintainer: Fabian Affolter pkgname=py-zmq _pkgname=pyzmq pkgver=15.3.0 pkgrel=1 pkgdesc="Python bindings for ZeroMQ" url="http://pypi.python.org/pypi/pyzmq" arch="noarch" license="LGPL3+ 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 || 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" } _py3() { _py python3 } md5sums="6402a68c119c0943c973c2ee7620db4b pyzmq-15.3.0.tar.gz" sha256sums="c4b387071ece45c451c9badf51e02e0a5513fe89abf11dffdf95e81e394d5cf4 pyzmq-15.3.0.tar.gz" sha512sums="e425552a5ef59fa299c3e6382fe99c795db27628b52e64e37316978ad39734ffcc770b836f654bf158962d0f602748e6b58198fc79b3c198eb8fc9573055933e pyzmq-15.3.0.tar.gz"