summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBrenton Horne2020-06-17 17:08:31 +1000
committerBrenton Horne2020-06-17 17:08:31 +1000
commit0f896eae9ef8d5cb3841ee1abc45dc9e746d7764 (patch)
tree973433c374dce5b34fe2fea0bf19ec2bb576e4a4 /PKGBUILD
parentd4e4f49b346c1c3208fb287b30f47b0e8654da41 (diff)
downloadaur-0f896eae9ef8d5cb3841ee1abc45dc9e746d7764.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 19 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 00a01578245..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.31.1
-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/v${pkgver}.tar.gz")
-sha256sums=('b1aa363d3d3858da9c6c7813123de5ce5a9a78aedb4ce872169bb48eb7aedb1d')
+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"
-} \ No newline at end of file
+}