blob: aa77cb349da1a97fec8dbb51a7726a080b24822f (
plain)
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
51
52
53
54
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-zmq
_pkgname=pyzmq
pkgver=15.0.0
pkgrel=1
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"
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"
python 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
}
_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}
}
_py2() {
_py python2
replaces="$pkgname"
}
_py3() {
_py python3
}
md5sums="a4e357fe3574fc64a959e7a8e5373b9f pyzmq-15.0.0.tar.gz"
sha256sums="376ca24cf365092d03bd1de00ed4319910aef84394cb4805a866bdf0b6d317bb pyzmq-15.0.0.tar.gz"
sha512sums="7d42e6e2218ff9668db92cc68ea511a90bac4a4f950ca42d199b82cf17dee587c824be16ea0e315da7b482e7ced0d97769cc500bf9d0fa2eb8a5b7c764c8305f pyzmq-15.0.0.tar.gz"
|