blob: 9a0495cfc52fccde80e4b0b6d1caad9662f70873 (
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
|
# Maintainer: Batuhan Baserdem <lastname dot firstname at gmail>
_name='python-pyro5'
_srcname='Pyro5'
pkgname="${_name}-git"
provides=("${_name}")
conflicts=("${_name}")
pkgver=5.10.r1.g5a12876
pkgrel=1
pkgdesc='Remote objects communication library, fifth major version'
arch=('any')
url="https://github.com/irmen/${_srcname}"
license=('MIT')
source=("git+${url}")
makedepends=('git' 'python-setuptools' 'python-pytest' 'python-msgpack>=0.5.2')
optdepends=('python-msgpack>=0.5.2: Serializer')
depends=('python-serpent>=1.27')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_srcname}"
git describe --long --tags | sed 's|\([^-]*-g\)|r\1|;s|-|.|g;s|^v||g'
}
build() {
cd "${srcdir}/${_srcname}"
python setup.py build
}
check(){
cd "${srcdir}/${_srcname}"
python setup.py install --root="${srcdir}/${_srcname}/tmp_install"
pysys="$(python -c 'import sys; print(sys.version_info.minor)')"
pydir="${srcdir}/${_srcname}/tmp_install/usr/lib/python${pysys}/site-packages"
PYTHONPATH="${pydir}:${PYTONPATH}"pytest
}
package() {
cd "${srcdir}/${_srcname}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
}
|