diff options
author | Sanpi | 2020-04-05 21:22:45 +0200 |
---|---|---|
committer | Sanpi | 2020-04-05 21:22:45 +0200 |
commit | eafaf5445637daf7a251d599d1db50f5eb24602c (patch) | |
tree | 2c2342834c0e3254705366d524d7ad28f4db1d37 | |
download | aur-eafaf5445637daf7a251d599d1db50f5eb24602c.tar.gz |
v0.5.0
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 30 |
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b0e0ffa208e9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = evcxr_jupyter + pkgdesc = A Jupyter Kernel for the Rust programming language. + pkgver = 0.5.0 + pkgrel = 1 + url = https://github.com/google/evcxr/tree/master/evcxr_jupyter + arch = x86_64 + license = Apache + makedepends = cargo + depends = rust + depends = jupyter-notebook + source = 0.5.0.tar.gz::https://crates.io/api/v1/crates/evcxr_jupyter/0.5.0/download + sha256sums = 32183ff94cb0c1589fa4f9786ea7307ff6717ef998cba4d09d29b5b96a15b1b6 + +pkgname = evcxr_jupyter + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..39f18da64cb8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/*.pkg.tar.xz +/*.tar.gz +/src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c5147694e2ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Sanpi <sanpi+aur@homecomputing.fr> +pkgname=evcxr_jupyter +pkgver=0.5.0 +pkgrel=1 +pkgdesc='A Jupyter Kernel for the Rust programming language.' +url="https://github.com/google/evcxr/tree/master/$pkgname" +arch=('x86_64') +license=('Apache') +depends=('rust' 'jupyter-notebook') +makedepends=('cargo') +source=("$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download") +sha256sums=('32183ff94cb0c1589fa4f9786ea7307ff6717ef998cba4d09d29b5b96a15b1b6') + +build() +{ + cd "$pkgname-$pkgver" + + cargo build --release +} + +package() +{ + cd "$pkgname-$pkgver" + + install --mode 755 --directory "$pkgdir/usr/bin" + install --mode 755 "target/release/$pkgname" "$pkgdir/usr/bin" + + JUPYTER_CONFIG_DIR="$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" +} |