[arch-commits] Commit in python-sphinxcontrib-trio/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 17:07:01 UTC 2020
Date: Monday, November 9, 2020 @ 17:07:00
Author: felixonmars
Revision: 747761
archrelease: copy trunk to community-staging-any
Added:
python-sphinxcontrib-trio/repos/community-staging-any/
python-sphinxcontrib-trio/repos/community-staging-any/PKGBUILD
(from rev 747757, python-sphinxcontrib-trio/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-sphinxcontrib-trio/repos/community-staging-any/PKGBUILD (from rev 747757, python-sphinxcontrib-trio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 17:07:00 UTC (rev 747761)
@@ -0,0 +1,34 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-sphinxcontrib-trio
+_pyname=${pkgname/python-/}
+pkgver=1.1.0
+pkgrel=4
+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