mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-30 10:51:39 +02:00
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-zmq
|
|
_pkgname=pyzmq
|
|
pkgver=17.1.2
|
|
pkgrel=0
|
|
pkgdesc="Python bindings for ZeroMQ"
|
|
url="https://pypi.python.org/pypi/pyzmq"
|
|
arch="all"
|
|
license="LGPL-3.0-or-later 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
|
|
python3 setup.py build
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
|
|
sha512sums="74929c97aaac0b4f6acc71274ac84970b8e02f0e0d84a0642de7634c79d2c563bbc81ddb78fbb8331f70551a99d75ae6462cb08051668dc18f5cb0aa81ad8298 pyzmq-17.1.2.tar.gz"
|