# Contributor: Valery Kartel # Maintainer: Fabian Affolter pkgname=py-zmq _pkgname=pyzmq pkgver=16.0.0 pkgrel=0 pkgdesc="Python bindings for ZeroMQ" url="http://pypi.python.org/pypi/pyzmq" arch="all" 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" 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 } md5sums="1c6085e9338b5a1b185db922e26a6b75 pyzmq-16.0.0.tar.gz" sha256sums="712000cc23e3845936d22b6085be40679fd38d789a3d20836be191b8a86f15a7 pyzmq-16.0.0.tar.gz" sha512sums="ebcf3503d90ee645d7881d9a3b65d69e51c73d451aa231dba47c5cd6fcc858e1ed4e3de9952a692919453de1e59a07f5813e9cfc9ed1142f9be1d25f93febcad pyzmq-16.0.0.tar.gz"