1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
3 # Contributor: Wenxuan Zhang <wenxuangm@gmail.com>
8 pkgdesc='Run Rust files and expressions as scripts without any setup or compilation'
10 url='https://rust-script.org'
11 license=('MIT' 'Apache')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/fornwall/rust-script/archive/$pkgver.tar.gz")
15 sha256sums=('5864825c4fec863e226088deb0a03365f4bd69ed7700cae1f16096806b0fffcc')
20 # download dependencies
21 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
27 cargo build --frozen --release
35 --skip "tests::script::test_nightly_toolchain" \
36 --skip "tests::script::test_stable_toolchain"
43 install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
46 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
49 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*