diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 09:20:54 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 09:20:54 +0000 |
commit | 05781bd4a08649a542f78afaeb2536ce4ce5fa27 (patch) | |
tree | f780be08a6e266084be32a3b708ed9aff79c3bff /community/py-zmq/APKBUILD | |
parent | c4e796e04a719b8ca71de62b8d28362541825a7c (diff) | |
download | aports-05781bd4a08649a542f78afaeb2536ce4ce5fa27.tar.bz2 aports-05781bd4a08649a542f78afaeb2536ce4ce5fa27.tar.xz |
community/py-zmq: moved from testing, upgraded to 15.4.0
Diffstat (limited to 'community/py-zmq/APKBUILD')
-rw-r--r-- | community/py-zmq/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
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 <valery.kartel@gmail.com> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +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" |