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

Antonio Rojas arojas at archlinux.org
Fri Mar 1 23:58:16 UTC 2019


    Date: Friday, March 1, 2019 @ 23:58:15
  Author: arojas
Revision: 437335

Add docs

Modified:
  python-pplpy/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-01 23:31:55 UTC (rev 437334)
+++ PKGBUILD	2019-03-01 23:58:15 UTC (rev 437335)
@@ -2,14 +2,14 @@
 
 _pipname=pplpy
 pkgbase=python-pplpy
-pkgname=(python2-pplpy python-pplpy)
+pkgname=(python2-pplpy python-pplpy pplpy-doc)
 pkgver=0.8.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Python wrapper to the C++ Parma Polyhedra Library (PPL)"
 arch=(x86_64)
 url="https://gitlab.com/videlec/pplpy/"
 license=(LGPL2.1)
-makedepends=(cython2 cython python-cysignals python2-cysignals python-gmpy2 python2-gmpy2 ppl)
+makedepends=(cython2 cython python-cysignals python2-cysignals python-gmpy2 python2-gmpy2 ppl python-sphinx)
 source=("https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz")
 sha256sums=('b962914d5814edab320d00c11ca396b70c4ce1e67db7a6d59c4b0a3772a16836')
 
@@ -37,5 +37,13 @@
   
   cd $_pipname-$pkgver 
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  make -C docs html
 }
 
+package_pplpy-doc() {
+  pkgdesc="HTML documentation for pplpy"
+  
+  mkdir -p "$pkgdir"/usr/share/doc/pplpy
+  cp -r $_pipname-$pkgver/docs/build/html/* "$pkgdir"/usr/share/doc/pplpy
+}


More information about the arch-commits mailing list