Date: Monday, February 26, 2018 @ 17:35:07 Author: felixonmars Revision: 298580
addpkg: python-h11 0.7.0-1 Added: python-h11/ python-h11/repos/ python-h11/trunk/ python-h11/trunk/PKGBUILD ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Added: python-h11/trunk/PKGBUILD =================================================================== --- python-h11/trunk/PKGBUILD (rev 0) +++ python-h11/trunk/PKGBUILD 2018-02-26 17:35:07 UTC (rev 298580) @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> +# Contributor: Simon Sapin <simon dot sapin at exyr dot org> +# Contributor: Kyle Keen <[email protected]> + +pkgbase=python-h11 +pkgname=(python-h11 python2-h11) +pkgver=0.7.0 +pkgrel=1 +pkgdesc="A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" +url="https://github.com/njsmith/h11" +license=('MIT') +arch=('any') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("https://pypi.io/packages/source/h/h11/h11-$pkgver.zip") +sha512sums=('abf9b8f7f12870804539049c3bfebbbe476e394636aed9967aa725d501fff983f28c7f14b4b882c17914d00fe3e74417ff8922128d0e4e07bf042a7db6d0b100') + +prepare() { + cp -a h11-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/h11-$pkgver + python setup.py build + + cd "$srcdir"/h11-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/h11-$pkgver + python setup.py pytest + + cd "$srcdir"/h11-$pkgver-py2 + python2 setup.py pytest +} + +package_python-h11() { + depends=('python') + + cd h11-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} + +package_python2-h11() { + depends=('python2') + + cd h11-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} Property changes on: python-h11/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
