summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 18 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2f4e568ddf1..d9405c5c044 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,34 @@
-# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
-# Contributor: Julian Mehne <julian (dot) mehne (at) posteo (dot) de>
-# Contributor: renyuneyun <renyuneyun (at) gmail (dot) com>
+# Maintainer: Brenton Horne <brentonhorne77 at gmail.com>
_name=octave_kernel
-pkgname=jupyter-${_name}
-pkgver=0.32.0
-pkgrel=2
-pkgdesc="A Jupyter kernel for Octave"
+pkgname=jupyter-${_name}-git
+pkgver=347.git.a613c29
+pkgrel=1
+pkgdesc="A Jupyter kernel for Octave (git version)"
arch=('any')
url="https://github.com/Calysto/octave_kernel"
license=('BSD')
depends=('jupyter' 'jupyter-metakernel>=0.24.2' 'jupyter-notebook' 'octave')
makedepends=('python-pip')
-optdepends=('gnuplot: for making plots' 'jupyterlab: JupyterLab computational environment')
-source=("https://github.com/Calysto/octave_kernel/archive/${pkgver}.tar.gz")
-sha256sums=('b33a92b8f4e18bb9b707b827f21cccfcb2d0d9a7c3d6c121b70184bc1bd55190')
+provides=('jupyter-octave_kernel')
+optdepends=('gnuplot: for making plots' 'jupyterlab-git: 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-${pkgver}
+ cd "$srcdir"/$_name
python setup.py build
}
package() {
- cd "$srcdir"/$_name-${pkgver}
+ cd "$srcdir"/$_name
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}