[arch-commits] Commit in jupyter-server-mathjax/repos/community-any (2 files)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Feb 21 17:07:30 UTC 2022
Date: Monday, February 21, 2022 @ 17:07:30
Author: arojas
Revision: 1135567
archrelease: copy trunk to community-any
Added:
jupyter-server-mathjax/repos/community-any/PKGBUILD
(from rev 1135566, jupyter-server-mathjax/trunk/PKGBUILD)
Deleted:
jupyter-server-mathjax/repos/community-any/PKGBUILD
----------+
PKGBUILD | 62 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 31 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-21 17:07:18 UTC (rev 1135566)
+++ PKGBUILD 2022-02-21 17:07:30 UTC (rev 1135567)
@@ -1,31 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=jupyter-server-mathjax
-pkgver=0.2.3
-pkgrel=3
-pkgdesc='MathJax resources as a Jupyter Server Extension'
-arch=(any)
-url='https://jupyter.org/'
-license=(BSD)
-depends=(jupyter-server mathjax2)
-makedepends=(python-setuptools python-jupyter_packaging)
-source=(https://pypi.io/packages/source/j/${pkgname//-/_}/${pkgname//-/_}-$pkgver.tar.gz)
-sha256sums=('564e8d1272019c6771208f577b5f9f2b3afb02b9e2bff3b34c042cef8ed84451')
-
-build() {
- cd ${pkgname//-/_}-$pkgver
- python setup.py build
-}
-
-package() {
- cd ${pkgname//-/_}-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- mv "$pkgdir"{/usr,}/etc
-
-# Unbundle mathjax
- _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
- rm -r "$pkgdir"/$_pythonpath/jupyter_server_mathjax/static
- ln -s /usr/share/mathjax2 "$pkgdir"/$_pythonpath/jupyter_server_mathjax/static
-
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
-}
Copied: jupyter-server-mathjax/repos/community-any/PKGBUILD (from rev 1135566, jupyter-server-mathjax/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-21 17:07:30 UTC (rev 1135567)
@@ -0,0 +1,31 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=jupyter-server-mathjax
+pkgver=0.2.5
+pkgrel=1
+pkgdesc='MathJax resources as a Jupyter Server Extension'
+arch=(any)
+url='https://jupyter.org/'
+license=(BSD)
+depends=(jupyter-server mathjax2)
+makedepends=(python-build python-installer python-jupyter_packaging)
+source=(https://pypi.io/packages/source/j/${pkgname//-/_}/${pkgname//-/_}-$pkgver.tar.gz)
+sha256sums=('64d96c8e6dfe6edba737902b2dc3a2dc058f17516776c25f4d30ca24617ee7b3')
+
+build() {
+ cd ${pkgname//-/_}-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd ${pkgname//-/_}-$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/jupyter_server_mathjax/static
+ ln -s /usr/share/mathjax2 "$pkgdir"/$_pythonpath/jupyter_server_mathjax/static
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list