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

Filipe Laíns ffy00 at archlinux.org
Sat Feb 15 21:22:57 UTC 2020


    Date: Saturday, February 15, 2020 @ 21:22:57
  Author: ffy00
Revision: 571851

upgpkg: python-webargs 5.5.3-1

Modified:
  python-webargs/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-15 21:22:42 UTC (rev 571850)
+++ PKGBUILD	2020-02-15 21:22:57 UTC (rev 571851)
@@ -9,7 +9,7 @@
 url='https://github.com/marshmallow-code/webargs'
 license=('MIT')
 depends=('python-marshmallow')
-makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx-issues')
+makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx-issues' 'python-sphinx-typlog-theme')
 checkdepends=('python-pytest-runner' 'python-mock' 'python-webtest' 'python-pytest-aiohttp'
               'python-bottle' 'python-werkzeug' 'python-django' 'python-flask' 'python-tornado')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
@@ -25,6 +25,12 @@
   cd $_pkgname-$pkgver
 
   python setup.py build
+
+  cd docs
+
+  make html man
+  ls _build/man
+  gzip _build/man/webargs.1
 }
 
 check() {
@@ -38,6 +44,12 @@
 
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 
+  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+  cp -r -a --no-preserve=ownership docs/_build/html "$pkgdir"/usr/share/doc/$pkgname
+
+  install -dm 755 "$pkgdir"/usr/share/man/man1
+  install -Dm 644 docs/_build/man/webargs.1.gz "$pkgdir"/usr/share/man/man1/webargs.1.gz
+
   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 



More information about the arch-commits mailing list