blob: b7d7b1b7beabb528c101a2c8645442bce17c3fb0 (
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
30
31
32
33
34
35
36
37
38
|
# Maintainer: Sanpi <sanpi+aur@homecomputing.fr>
pkgname=evcxr_jupyter
pkgver=0.18.0
pkgrel=1
pkgdesc='A Jupyter Kernel for the Rust programming language.'
url="https://github.com/google/evcxr/tree/main/$pkgname"
arch=('x86_64')
options=(!lto)
license=('Apache')
depends=('rust' 'jupyter-notebook')
makedepends=('cargo' 'cmake')
source=("$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download")
sha256sums=('28e997771ad7547894c72b078db9fb95ddfd89a17f6f31b68448011386af89f5')
prepare()
{
cd "$srcdir/$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build()
{
cd "$pkgname-$pkgver"
cargo build --frozen --release
}
package()
{
cd "$pkgname-$pkgver"
install --mode 755 --directory "$pkgdir/usr/bin"
install --mode 755 "target/release/$pkgname" "$pkgdir/usr/bin"
JUPYTER_PATH="$pkgdir/usr/share/jupyter/" cargo run --release -- --install
sed -i 's#".*/target/release/evcxr_jupyter"#"/usr/bin/evcxr_jupyter"#' "$pkgdir/usr/share/jupyter/kernels/rust/kernel.json"
}
|