Date: Friday, September 13, 2019 @ 16:58:19 Author: anthraxx Revision: 510357
addpkg: python-sphinxcontrib-trio 1.1.0-1 Added: python-sphinxcontrib-trio/ python-sphinxcontrib-trio/repos/ python-sphinxcontrib-trio/trunk/ python-sphinxcontrib-trio/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Added: python-sphinxcontrib-trio/trunk/PKGBUILD =================================================================== --- python-sphinxcontrib-trio/trunk/PKGBUILD (rev 0) +++ python-sphinxcontrib-trio/trunk/PKGBUILD 2019-09-13 16:58:19 UTC (rev 510357) @@ -0,0 +1,34 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +pkgname=python-sphinxcontrib-trio +_pyname=${pkgname/python-/} +pkgver=1.1.0 +pkgrel=1 +pkgdesc='Make Sphinx better at documenting Python functions and methods' +url='https://github.com/python-trio/sphinxcontrib-trio' +arch=('any') +license=('MIT') +depends=('python' 'python-sphinx') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-lxml' 'python-cssselect') +source=(https://github.com/python-trio/sphinxcontrib-trio/archive/v${pkgver}/${_pyname}-${pkgver}.tar.gz) +sha512sums=('0d119cb8a1669dcb10f4498d87dae70496b64976618783c7b49f8177b03eb15d7fb8833f21b395f62288e3e619dd98a620677d316bafbcc0bc716115a9b574c2') + +build() { + cd ${_pyname}-${pkgver} + python setup.py build +} + +check() { + cd ${_pyname}-${pkgver} + PYTHONPATH=. py.test +} + +package() { + cd ${_pyname}-${pkgver} + python setup.py install -O1 --root="${pkgdir}" --skip-build + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" +} + +# vim: ts=2 sw=2 et: