diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2016-09-25 21:40:43 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-25 23:54:35 +0200 |
commit | e14e84043ac6a0f49a5865f0cda072e82f9de4ec (patch) | |
tree | e44430ed1bdda3b9df1e602b2311519c6f2deaec /community/py-zmq/APKBUILD | |
parent | d5393e3b2284ecd3e54d40b6a62111580e8e927c (diff) | |
download | aports-e14e84043ac6a0f49a5865f0cda072e82f9de4ec.tar.bz2 aports-e14e84043ac6a0f49a5865f0cda072e82f9de4ec.tar.xz |
community/py-zmq: fix APKBUILD
Diffstat (limited to 'community/py-zmq/APKBUILD')
-rw-r--r-- | community/py-zmq/APKBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/community/py-zmq/APKBUILD b/community/py-zmq/APKBUILD index 4cbcf2cdf3..da85480aba 100644 --- a/community/py-zmq/APKBUILD +++ b/community/py-zmq/APKBUILD @@ -13,13 +13,12 @@ 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 +builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 - python3 setup.py build || return 1 + python3 setup.py build || return 1 } package() { @@ -30,14 +29,15 @@ _py() { local python=$1 pkgdesc="$pkgdesc - $python" arch="all" - install_if="$pkgname=$pkgver-r$pkgrel $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { - _py python2 replaces="$pkgname" + _py python2 } _py3() { |