Repository navigation
Expand file tree
/
Copy pathpython2-msgpack.avhb
More file actions
53 lines (44 loc) · 1.52 KB
/
Copy pathpython2-msgpack.avhb
File metadata and controls
53 lines (44 loc) · 1.52 KB
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
# $Id$
# Maintainer: Qurban Ullah <[email protected]>
# Contributor: Qurban Ullah <[email protected]>
pkgbase=python-msgpack
pkgname=('python-msgpack' 'python2-msgpack')
pkgver=0.5.6
pkgrel=1
_realname=msgpack-python
url='https://github.com/msgpack/msgpack-python'
arch=('x86_64')
groups=('dev-python')
license=('Apache')
makedepends=('cython' 'cython2' 'python-setuptools' 'python2-setuptools')
checkdepends=('python-pytest' 'python2-pytest' 'python-six' 'python2-six')
source=(msgpack-python-$pkgver.tar.gz::https://github.com/msgpack/msgpack-python/archive/$pkgver.tar.gz)
md5sums=('e05e0edfebdd32d11b02bea88381595e')
build() {
cd msgpack-python-$pkgver
python setup.py build --build-lib=build/python
python2 setup.py build --build-lib=build/python2
find build/python2 -type f -exec \
sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
}
check() {
cd msgpack-python-$pkgver
msg2 'python'
PYTHONPATH=$PWD/build/python py.test test
msg2 'python2'
PYTHONPATH=$PWD/build/python2 py.test2 test
}
package_python-msgpack() {
pkgdesc='MessagePack serializer implementation for Python'
depends=('python')
cd msgpack-python-$pkgver
python setup.py build --build-lib=build/python \
install --root="$pkgdir" --optimize=1
}
package_python2-msgpack() {
pkgdesc='MessagePack serializer implementation for Python2'
depends=('python2')
cd msgpack-python-$pkgver
python2 setup.py build --build-lib=build/python2 \
install --root="$pkgdir" --optimize=1
}