mirror of
https://github.com/Tim-Paik/rhai-tools-aur.git
synced 2024-10-13 00:29:42 +00:00
first commit
This commit is contained in:
13
.SRCINFO
Normal file
13
.SRCINFO
Normal file
@ -0,0 +1,13 @@
|
||||
pkgbase = rhai-tools
|
||||
pkgdesc = Tools for the Rhai language, including rhai-repl, rhai-run, and rhai-dbg
|
||||
pkgver = 1.7.0
|
||||
pkgrel = 1
|
||||
url = https://rhai.rs/
|
||||
arch = x86_64
|
||||
license = APACHE
|
||||
license = MIT
|
||||
makedepends = cargo
|
||||
source = rhai-1.7.0.tar.gz::https://github.com/rhaiscript/rhai/archive/v1.7.0.tar.gz
|
||||
sha256sums = 4d696df126c4317a8f9d80f9b27bb690b37385ce74fdf0cd873f701f4c471b55
|
||||
|
||||
pkgname = rhai-tools
|
20
PKGBUILD
Normal file
20
PKGBUILD
Normal file
@ -0,0 +1,20 @@
|
||||
# Maintainer: Tim Paik <timpaik@163.com>
|
||||
pkgname=rhai-tools
|
||||
_pkgname=rhai
|
||||
pkgver=1.7.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=('4d696df126c4317a8f9d80f9b27bb690b37385ce74fdf0cd873f701f4c471b55')
|
||||
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user