Date: Wednesday, October 19, 2022 @ 07:27:39
  Author: arojas
Revision: 1332814

archrelease: copy trunk to community-any

Added:
  jupyter-nbclassic/repos/community-any/PKGBUILD
    (from rev 1332813, jupyter-nbclassic/trunk/PKGBUILD)
Deleted:
  jupyter-nbclassic/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   70 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 37 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-19 07:27:30 UTC (rev 1332813)
+++ PKGBUILD    2022-10-19 07:27:39 UTC (rev 1332814)
@@ -1,33 +0,0 @@
-# Maintainer: Antonio Rojas <[email protected]>
-
-_pipname=nbclassic
-pkgname=jupyter-$_pipname
-pkgver=0.4.6
-pkgrel=2
-pkgdesc='Jupyter Notebook as a Jupyter Server Extension'
-arch=(any)
-url='https://jupyter.org/'
-license=(custom)
-depends=(jupyter-server jupyter-notebook-shim)
-makedepends=(python-build python-installer python-setuptools)
-checkdepends=(python-pytest-tornasync)
-source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
-sha256sums=('3c18d343b292f938efc93205761e674f20eca06ead25e0eedc17f7ae252bf56d')
-
-build() {
-  cd $_pipname-$pkgver
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  cd $_pipname-$pkgver
-  pytest -v
-}
-
-package() {
-  cd $_pipname-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-  mv "$pkgdir"/{usr/,}etc
-
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: jupyter-nbclassic/repos/community-any/PKGBUILD (from rev 1332813, 
jupyter-nbclassic/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-19 07:27:39 UTC (rev 1332814)
@@ -0,0 +1,37 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pipname=nbclassic
+pkgname=jupyter-$_pipname
+pkgver=0.4.6
+pkgrel=3
+pkgdesc='Jupyter Notebook as a Jupyter Server Extension'
+arch=(any)
+url='https://jupyter.org/'
+license=(custom)
+depends=(jupyter-server jupyter-notebook-shim mathjax2)
+makedepends=(python-build python-installer python-setuptools)
+checkdepends=(python-pytest-tornasync)
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
+sha256sums=('3c18d343b292f938efc93205761e674f20eca06ead25e0eedc17f7ae252bf56d')
+
+build() {
+  cd $_pipname-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_pipname-$pkgver
+  pytest -v
+}
+
+package() {
+  cd $_pipname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  mv "$pkgdir"/{usr/,}etc
+# Unbundle mathjax
+  _pythonpath=`python -c "from sysconfig import get_path; 
print(get_path('platlib'))"`
+  rm -r "$pkgdir"$_pythonpath/nbclassic/static/components/MathJax
+  ln -s /usr/share/mathjax2 
"$pkgdir"$_pythonpath/nbclassic/static/components/MathJax
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to