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

Antonio Rojas arojas at archlinux.org
Sat Oct 20 19:37:43 UTC 2018


    Date: Saturday, October 20, 2018 @ 19:37:42
  Author: arojas
Revision: 398119

Add docs

Modified:
  sage-notebook/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-20 19:37:20 UTC (rev 398118)
+++ PKGBUILD	2018-10-20 19:37:42 UTC (rev 398119)
@@ -3,7 +3,7 @@
 
 pkgname=sage-notebook
 pkgver=1.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Browser-based notebook interface for SageMath'
 arch=(any)
 url='http://www.sagemath.org'
@@ -10,7 +10,7 @@
 license=(GPL3)
 depends=(sagemath python2-twisted python2-flask-oldsessions python2-flask-openid python2-flask-autoindex python2-flask-babel mathjax jsmol)
 optdepends=('python2-pyopenssl: to use the notebook in secure mode')
-makedepends=(gendesk)
+makedepends=(gendesk python2-sphinx)
 source=($pkgname-$pkgver::"https://github.com/sagemath/sagenb/archive/$pkgver.tar.gz" sage.service)
 sha256sums=('219a02e2b15289a6ecdc8db41e14424fbbe7ad5ff85fbc1d85baf558db502590'
             '2cf8668fa77a96fe562dafd50cab41aad03f53ee8b91587b1b45ecd193c1517a')
@@ -36,6 +36,9 @@
 build() {
   cd sagenb-$pkgver
   python2 setup.py build
+  
+  cd doc
+  make SPHINXBUILD=sphinx-build2 html
 }
 
 package() {
@@ -55,4 +58,8 @@
                  "$pkgdir/usr/share/pixmaps/sage-notebook.png"
 # remove sage3d
   rm -r "$pkgdir"/usr/bin
+
+# install docs
+  mkdir -p "$pkgdir"/usr/share/doc/sagenb
+  cp -r doc/build/html "$pkgdir"/usr/share/doc/sagenb
 }



More information about the arch-commits mailing list