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

Filipe Laíns ffy00 at archlinux.org
Fri May 24 01:00:36 UTC 2019


    Date: Friday, May 24, 2019 @ 01:00:36
  Author: ffy00
Revision: 469464

add documentation (0.2-2)

- Generate documentation
- Add initial migration from the testsuite to pytest (blocked as the current tests require permission to /run/dev)

Modified:
  hid-tools/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-24 00:13:20 UTC (rev 469463)
+++ PKGBUILD	2019-05-24 01:00:36 UTC (rev 469464)
@@ -2,13 +2,14 @@
 
 pkgname=hid-tools
 pkgver=0.2
-pkgrel=1
+pkgrel=2
 arch=('any')
 url='https://gitlab.freedesktop.org/libevdev/hid-tools'
 license=('GPL2')
 pkgdesc='Python scripts to manipulate HID data'
 depends=('python-parse' 'python-pyudev')
-makedepends=('python-setuptools' 'python-pypandoc')
+makedepends=('python-setuptools' 'python-pypandoc' 'python-sphinx' 'python-sphinx_rtd_theme')
+#checkdepends=('python-pytest-runner' 'python-libevdev')
 source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha512sums=('580635bc679b8b6dd396c72b9a5d6560a56a3c3fa4b1d83ebbe82508977e23ce3abf0892406605937e62cde6335d205eba283b6c67dfe65630a2a27d74747ffb')
 
@@ -16,6 +17,8 @@
   cd $pkgname-$pkgver
 
   python setup.py build
+
+  make doc
 }
 
 check() {
@@ -22,6 +25,7 @@
   cd $pkgname-$pkgver
 
   python setup.py test
+#  python setup.py pytest
 }
 
 package() {
@@ -28,5 +32,9 @@
   cd $pkgname-$pkgver
 
   python setup.py install --root "$pkgdir" --skip-build -O1
+
+  # Install documentation
+  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+  cp -r -a --no-preserve=ownership doc/html "$pkgdir"/usr/share/doc/$pkgname
 }
 



More information about the arch-commits mailing list