[arch-commits] Commit in python-sphinxcontrib-trio/repos (2 files)

Levente Polyak anthraxx at archlinux.org
Fri Sep 13 16:58:29 UTC 2019


    Date: Friday, September 13, 2019 @ 16:58:29
  Author: anthraxx
Revision: 510358

archrelease: copy trunk to community-any

Added:
  python-sphinxcontrib-trio/repos/community-any/
  python-sphinxcontrib-trio/repos/community-any/PKGBUILD
    (from rev 510357, python-sphinxcontrib-trio/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-sphinxcontrib-trio/repos/community-any/PKGBUILD (from rev 510357, python-sphinxcontrib-trio/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-09-13 16:58:29 UTC (rev 510358)
@@ -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:


More information about the arch-commits mailing list