You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
784 B
20 lines
784 B
# Maintainer: Tim Paik <[email protected]> |
|
pkgname=rhai-tools |
|
_pkgname=rhai |
|
pkgver=1.8.0 |
|
pkgrel=1 |
|
pkgdesc="Tools for the Rhai language, including rhai-repl, rhai-run, and rhai-dbg" |
|
arch=('x86_64') |
|
url="https://rhai.rs/" |
|
license=('APACHE' 'MIT') |
|
makedepends=(cargo) |
|
source=("$_pkgname-$pkgver.tar.gz::https://github.com/rhaiscript/$_pkgname/archive/v$pkgver.tar.gz") |
|
sha256sums=('23ad26e92901d049887bc17aa0a2792f975c0fcad0e0dff8b8463acca4f2ca05') |
|
|
|
package() { |
|
cd "$_pkgname-$pkgver" |
|
export RUSTUP_TOOLCHAIN=stable |
|
cargo install --no-track --bins --features bin-features --root "$pkgdir/usr/" --path . |
|
install -Dm644 LICENSE-APACHE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE.txt" |
|
install -Dm644 LICENSE-MIT.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT.txt" |
|
}
|
|
|