[arch-commits] Commit in rstcheck/trunk (PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Wed Mar 25 19:08:03 UTC 2020


    Date: Wednesday, March 25, 2020 @ 19:08:03
  Author: polyzen
Revision: 604362

Add check()

Source from GitHub until the next release which will distribute the
tests and examples on PyPI.

Modified:
  rstcheck/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-25 18:36:33 UTC (rev 604361)
+++ PKGBUILD	2020-03-25 19:08:03 UTC (rev 604362)
@@ -8,9 +8,10 @@
 url=https://github.com/myint/rstcheck
 license=('MIT')
 depends=('python-docutils' 'python-setuptools')
+checkdepends=('python-sphinx')
 optdepends=('python-sphinx: Sphinx support')
-source=("https://files.pythonhosted.org/packages/source/r/rstcheck/rstcheck-$pkgver.tar.gz")
-sha512sums=('d390565c59466e1047fb41491eb5a2261fec91848806e04137bcc6053759fc87c8e4c72721d39b35c959b0baddaf90f2c8459213cec76b82be9b78bdd44076c5')
+source=("$url/archive/v$pkgver/rstcheck-v$pkgver.tar.gz")
+sha512sums=('07431d6c4789e4c005c4bf4be66f627c390f57e56f25b4f3db8b392bc7b904ca93c3e26145ab344e9b78109d2054e5f36167ab40b1ab023f08c85d6ec12cafbc')
 
 build() {
   cd rstcheck-$pkgver
@@ -17,6 +18,11 @@
   python setup.py build
 }
 
+check() {
+ cd rstcheck-$pkgver
+ ./test_rstcheck.py
+}
+
 package() {
   cd rstcheck-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build



More information about the arch-commits mailing list