Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add almond for Scala 2.13 & 2.12 #2581

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions archlinuxcn/almond-212/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: sinofp <sinofp@tuta.io>

SCALA_MAJOR_VERSION=2.12
SCALA_MAJOR_VERSION_TRIMMED=$(echo ${SCALA_MAJOR_VERSION} | tr -d .)

pkgname=almond-$SCALA_MAJOR_VERSION_TRIMMED
pkgver=0.10.9
pkgrel=1
pkgdesc="A Scala $SCALA_MAJOR_VERSION kernel for Jupyter"
arch=('any')
url="https://almond.sh/"
license=('BSD')
depends=('jupyter' 'java-runtime')
source=('cs::https://git.io/coursier-cli-linux' 'https://raw.githubusercontent.com/almond-sh/almond/master/LICENSE')
Comment on lines +13 to +14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

==> Installing missing dependencies...
error: target not found: jupyter
==> Missing dependencies:
  -> jupyter

md5sums=('SKIP' 'bd87e89adb3554daa4d95415cfa95da9')

package() {
chmod +x cs

export COURSIER_CACHE="$pkgdir/usr/share/almond/coursier/v1"
export COURSIER_JVM_CACHE="$pkgdir/usr/share/almond/coursier/jvm"
./cs launch --fork almond:$pkgver --scala $SCALA_MAJOR_VERSION -- --install --display-name "Scala $SCALA_MAJOR_VERSION" --id scala$SCALA_MAJOR_VERSION_TRIMMED --jupyter-path "$pkgdir/usr/share/jupyter/kernels/"

sed -i "s|$pkgdir||g" "$pkgdir/usr/share/jupyter/kernels/scala$SCALA_MAJOR_VERSION_TRIMMED/kernel.json"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
6 changes: 6 additions & 0 deletions archlinuxcn/almond-212/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
update_on:
- source: github
github: almond-sh/almond

maintainers:
- github: sinofp
26 changes: 26 additions & 0 deletions archlinuxcn/almond-213/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: sinofp <sinofp@tuta.io>

SCALA_MAJOR_VERSION=2.13
SCALA_MAJOR_VERSION_TRIMMED=$(echo ${SCALA_MAJOR_VERSION} | tr -d .)

pkgname=almond-$SCALA_MAJOR_VERSION_TRIMMED
pkgver=0.10.9
pkgrel=1
pkgdesc="A Scala $SCALA_MAJOR_VERSION kernel for Jupyter"
arch=('any')
url="https://almond.sh/"
license=('BSD')
depends=('jupyter' 'java-runtime')
source=('cs::https://git.io/coursier-cli-linux' 'https://raw.githubusercontent.com/almond-sh/almond/master/LICENSE')
md5sums=('SKIP' 'bd87e89adb3554daa4d95415cfa95da9')

package() {
chmod +x cs

export COURSIER_CACHE="$pkgdir/usr/share/almond/coursier/v1"
export COURSIER_JVM_CACHE="$pkgdir/usr/share/almond/coursier/jvm"
./cs launch --fork almond:$pkgver --scala $SCALA_MAJOR_VERSION -- --install --display-name "Scala $SCALA_MAJOR_VERSION" --id scala$SCALA_MAJOR_VERSION_TRIMMED --jupyter-path "$pkgdir/usr/share/jupyter/kernels/"

sed -i "s|$pkgdir||g" "$pkgdir/usr/share/jupyter/kernels/scala$SCALA_MAJOR_VERSION_TRIMMED/kernel.json"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
6 changes: 6 additions & 0 deletions archlinuxcn/almond-213/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
update_on:
- source: github
github: almond-sh/almond

maintainers:
- github: sinofp