From 05781bd4a08649a542f78afaeb2536ce4ce5fa27 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Thu, 25 Aug 2016 09:20:54 +0000 Subject: community/py-zmq: moved from testing, upgraded to 15.4.0 --- community/py-zmq/APKBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 community/py-zmq/APKBUILD (limited to 'community/py-zmq/APKBUILD') diff --git a/community/py-zmq/APKBUILD b/community/py-zmq/APKBUILD new file mode 100644 index 000000000..4cbcf2cdf --- /dev/null +++ b/community/py-zmq/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Valery Kartel +# Maintainer: Fabian Affolter +pkgname=py-zmq +_pkgname=pyzmq +pkgver=15.4.0 +pkgrel=0 +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="d92fa329c20c72f4831a6aaca8057b2a pyzmq-15.4.0.tar.gz" +sha256sums="9d1d69da7ee78dce8721a1617c7938ded1cd1df76a6c1abf19acebb1a5ccc2bf pyzmq-15.4.0.tar.gz" +sha512sums="0b27c76aec7209d4020b281ad03c914e3ad7d127368d8d46842d077aea37d15f77ebf1a02687b52acbc442262db13cef4048c8fcf80610d4327432083874d6f7 pyzmq-15.4.0.tar.gz" -- cgit v1.2.3