summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bae3ed3f3af45352f50e9ffd93bbaf9dd876a0fd (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
# Maintainer: Kilian Guillaume "cafehaine" <kilian dot guillaume at gmail dot com>
pkgname=almond
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://git.io/coursier-cli" "kernel.json")
md5sums=('SKIP' 'SKIP')

package() {
	cd "$srcdir"
	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/"
}