mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
|
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
|
||
|
# Contributor: Sébastien "Seblu" Luttringer
|
||
|
|
||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||
|
# - python2 variant dropped upstream, still a dependency for packages
|
||
|
|
||
|
pkgname=python2-msgpack
|
||
|
pkgver=0.6.2
|
||
|
pkgrel=4
|
||
|
|
||
|
url='https://github.com/msgpack/msgpack-python'
|
||
|
arch=('x86_64')
|
||
|
license=('Apache')
|
||
|
|
||
|
makedepends=('cython2' 'python2-setuptools')
|
||
|
checkdepends=('python2-pytest' 'python2-six')
|
||
|
|
||
|
source=(msgpack-python-$pkgver.tar.gz::https://github.com/msgpack/msgpack-python/archive/v$pkgver.tar.gz)
|
||
|
|
||
|
md5sums=('e751675f8e18625bf1d2ec391dd9e8fd')
|
||
|
|
||
|
build() {
|
||
|
cd msgpack-python-$pkgver
|
||
|
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
|
||
|
PYTHONPATH=$PWD/build/python2 py.test2 test
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
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
|
||
|
}
|
||
|
|
||
|
# vim:set ts=2 sw=2 et:
|