Date: Tuesday, February 2, 2016 @ 15:24:02 Author: fyan Revision: 159970
addpkg: python-http-parser 0.8.3-1 Added: python-http-parser/ python-http-parser/repos/ python-http-parser/trunk/ python-http-parser/trunk/PKGBUILD ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Added: python-http-parser/trunk/PKGBUILD =================================================================== --- python-http-parser/trunk/PKGBUILD (rev 0) +++ python-http-parser/trunk/PKGBUILD 2016-02-02 14:24:02 UTC (rev 159970) @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-http-parser +pkgname=('python-http-parser' 'python2-http-parser') +pkgver=0.8.3 +pkgrel=1 +pkgdesc="HTTP request/response parser for Python" +arch=('i686' 'x86_64') +license=('MIT') +url="http://github.com/benoitc/http-parser" +makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git') +checkdepends=('python-pytest' 'python2-pytest') +source=("git+https://github.com/benoitc/http-parser.git#tag=$pkgver") +sha512sums=('SKIP') + +prepare() { + cp -a http-parser{,-py2} +} + +build() { + cd "$srcdir/http-parser" + python setup.py build + + cd "$srcdir/http-parser-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/http-parser" + PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" \ + py.test testing/ + + cd "$srcdir/http-parser-py2" + PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" \ + py.test2 testing/ +} + +package_python-http-parser() { + depends=('python') + + cd http-parser + python setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-http-parser() { + depends=('python2') + + cd http-parser-py2 + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Property changes on: python-http-parser/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property