diff options
author | cafehaine | 2020-02-04 12:25:35 +0100 |
---|---|---|
committer | cafehaine | 2020-02-04 12:25:35 +0100 |
commit | df3b092b7030ac0617d000a04badd803053821f7 (patch) | |
tree | eab9aa946c8f1e0fec3b8aca666174feb7ea0b36 /PKGBUILD | |
parent | fd96811743497001b6c94e92423cc37a3da264ef (diff) | |
download | aur-df3b092b7030ac0617d000a04badd803053821f7.tar.gz |
Switch installation method, bump version to v0.9.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -1,20 +1,29 @@ # Maintainer: Kilian Guillaume "cafehaine" <kilian dot guillaume at gmail dot com> pkgname=almond -pkgrel=3 -pkgver=0.8.1 +pkgrel=1 +pkgver=0.9.1 +_scalaver=2.13.1 pkgdesc="A scala kernel for Jupyter" arch=('x86_64') url="https://almond.sh/" license=('BSD') depends=('jupyter' 'scala') makedepends=() -source=("https://github.com/almond-sh/almond/releases/download/v0.8.1/almond" "kernel.json") +source=("https://git.io/coursier-cli" "kernel.json") md5sums=('SKIP' 'SKIP') package() { cd "$srcdir" - chmod +x ../almond - COURSIER_CACHE=$(pwd)/.coursier-cache ./almond --install --jupyter-path "$pkgdir/usr/share/jupyter/kernels/" + export SCALA_VERSION=$_scalaver + export ALMOND_VERSION=$pkgver + export COURSIER_CACHE=$(pwd)/.coursier-cache + chmod +x coursier-cli + ./coursier-cli bootstrap \ + -r jitpack \ + -i user -I user:sh.almond:scala-kernel-api_$SCALA_VERSION:$ALMOND_VERSION \ + sh.almond:scala-kernel_$SCALA_VERSION:$ALMOND_VERSION \ + -o almond + ./almond --install --jupyter-path "$pkgdir/usr/share/jupyter/kernels/" install -Dm644 kernel.json -t "$pkgdir/usr/share/jupyter/kernels/scala/" } |