blob: 84270ab4c1b62f9ace7f2fc030566cf9bc5d2488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Maintainer: Phil A. <flying-sheep@web.de>
# Contributor: Anthony Wang <ta180m@gmail.com>
_name=jupyterlab-git
pkgname=jupyterlab-extension-jupyterlab_git
pkgver=0.50.2
pkgrel=1
pkgdesc='Git extension for JupyterLab'
arch=(any)
url=https://github.com/jupyterlab/$_name
license=(BSD)
depends=(jupyterlab jupyter-server python-nbdime jupyter-nbformat python-packaging python-pexpect python-traitlets)
makedepends=(unzip)
provides=(jupyterlab-extension-git python-jupyterlab-git)
_wheel="${_name/-/_}-$pkgver-py3-none-any.whl"
source=("https://files.pythonhosted.org/packages/py3/${_name::1}/$_name/$_wheel")
sha256sums=('059114d19fcb5560f82914b070ed7654fab62392e3c1fdd5946c5dc460ae3697')
package() {
local site="$pkgdir/usr/lib/$(readlink /bin/python3)/site-packages"
install -d "$site"
unzip "$_wheel" -d "$site"
mv "$site/${_name/-/_}-$pkgver.data/data/share" "$pkgdir/usr/"
mv "$site/${_name/-/_}-$pkgver.data/data/etc" "$pkgdir/"
rmdir "$site/${_name/-/_}-$pkgver.data"{/data,}
}
|