aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-zmq/APKBUILD
blob: 4cbcf2cdf3c5133a17f4180fe74d5d094bb6c442 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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"