From be71a28f2509cb4eed60623956ccafc607fc4995 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Thu, 23 Apr 2020 23:56:38 +0000 Subject: [PATCH] added community/python2-msgpack --- community/python2-msgpack/PKGBUILD | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 community/python2-msgpack/PKGBUILD diff --git a/community/python2-msgpack/PKGBUILD b/community/python2-msgpack/PKGBUILD new file mode 100644 index 000000000..6c24f1d5f --- /dev/null +++ b/community/python2-msgpack/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Johannes Löthberg +# Contributor: Sébastien "Seblu" Luttringer + +# ALARM: Kevin Mihelich +# - 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: