summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4abeca0bc78ec256f236b24018e43f393c7a25c (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
26
27
28
29
30
31
32
33
34
# Maintainer: Brenton Horne <brentonhorne77 at gmail.com>
# Originally this PKGBUILD was just a modified version of that of jupyter-octave_kernel's PKGBUILD

_name=scilab_kernel
pkgname=jupyter-${_name}-git
pkgver=135.git.b2e9069
pkgrel=1
pkgdesc="A Jupyter kernel for Scilab"
arch=('any')
url="https://github.com/Calysto/scilab_kernel"
license=('MIT')
depends=('jupyter' 'jupyter-metakernel>=0.24.2' 'jupyter-notebook' 'scilab-bin')
makedepends=('python-pip')
optdepends=('jupyterlab: JupyterLab computational environment')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver(){
  cd $srcdir/$_name
  no=$(git rev-list --count HEAD)
  hash=$(git log | head -n 1 | cut -d ' ' -f 2 | head -c 7)
  printf "${no}.git.${hash}"
}

build() {
  cd "$srcdir"/$_name
  python setup.py build
}

package() {
  cd "$srcdir"/$_name
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}