diff options
Diffstat (limited to 'testing/py-zmq/APKBUILD')
-rw-r--r-- | testing/py-zmq/APKBUILD | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/testing/py-zmq/APKBUILD b/testing/py-zmq/APKBUILD index aa77cb349d..5d114a7296 100644 --- a/testing/py-zmq/APKBUILD +++ b/testing/py-zmq/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-zmq _pkgname=pyzmq -pkgver=15.0.0 -pkgrel=1 +pkgver=15.3.0 +pkgrel=0 pkgdesc="Python bindings for ZeroMQ" url="http://pypi.python.org/pypi/pyzmq" arch="noarch" license="LGPL3+ BSD" depends="" -makedepends="python-dev python3-dev py-setuptools zeromq-dev" +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" @@ -18,25 +18,21 @@ builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" - python setup.py build || return 1 + python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { - cd "$builddir" - python setup.py install --root=$pkgdir/ --optimize=1 || return 1 - python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1 + mkdir -p "$pkgdir" } _py() { local python=$1 pkgdesc="$pkgdesc - $python" arch="all" - install_if="$pkgname=$pkgver-r$pkgrel $python" - local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))') - - mkdir -p "$subpkgdir"${dir} - mv "$pkgdir"${dir}/* "$subpkgdir"${dir} + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { @@ -49,6 +45,6 @@ _py3() { } -md5sums="a4e357fe3574fc64a959e7a8e5373b9f pyzmq-15.0.0.tar.gz" -sha256sums="376ca24cf365092d03bd1de00ed4319910aef84394cb4805a866bdf0b6d317bb pyzmq-15.0.0.tar.gz" -sha512sums="7d42e6e2218ff9668db92cc68ea511a90bac4a4f950ca42d199b82cf17dee587c824be16ea0e315da7b482e7ced0d97769cc500bf9d0fa2eb8a5b7c764c8305f pyzmq-15.0.0.tar.gz" +md5sums="6402a68c119c0943c973c2ee7620db4b pyzmq-15.3.0.tar.gz" +sha256sums="c4b387071ece45c451c9badf51e02e0a5513fe89abf11dffdf95e81e394d5cf4 pyzmq-15.3.0.tar.gz" +sha512sums="e425552a5ef59fa299c3e6382fe99c795db27628b52e64e37316978ad39734ffcc770b836f654bf158962d0f602748e6b58198fc79b3c198eb8fc9573055933e pyzmq-15.3.0.tar.gz" |