[arch-commits] Commit in jupyterlab/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Sat Jun 29 07:14:35 UTC 2019
Date: Saturday, June 29, 2019 @ 07:14:35
Author: arojas
Revision: 485711
archrelease: copy trunk to community-staging-any
Added:
jupyterlab/repos/community-staging-any/
jupyterlab/repos/community-staging-any/PKGBUILD
(from rev 485710, jupyterlab/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: jupyterlab/repos/community-staging-any/PKGBUILD (from rev 485710, jupyterlab/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-06-29 07:14:35 UTC (rev 485711)
@@ -0,0 +1,30 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=jupyterlab
+_pipname=jupyterlab
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="JupyterLab computational environment"
+arch=(any)
+url="https://github.com/jupyterlab/jupyterlab"
+license=(custom)
+makedepends=(python-setuptools nodejs)
+depends=(jupyterlab_server)
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
+sha256sums=('1c325cbe9e8e3b3e552550e24a48f03182a64f533a85ed153330cbd006e9326d')
+
+build() {
+ cd $pkgname-$pkgver
+ python setup.py build
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # symlink to fix assets
+ install -d "$pkgdir"/usr/share/jupyter
+ ln -s `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`/jupyterlab "$pkgdir"/usr/share/jupyter/lab
+}
More information about the arch-commits
mailing list