1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 12:45:18 +03:00
aports/testing/rust-script/APKBUILD
2023-09-27 23:39:30 +02:00

33 lines
871 B
Text

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=rust-script
pkgver=0.34.0
pkgrel=0
pkgdesc="Run Rust files and expressions as scripts without any setup or compilation step"
url="https://rust-script.org/"
license="Apache-2.0 OR MIT"
arch="all !armhf" # tests hang
makedepends="cargo cargo-auditable"
source="https://github.com/fornwall/rust-script/archive/$pkgver/rust-script-$pkgver.tar.gz"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
}
sha512sums="
7475526fadba3caaa7035104efba05d49b0b8b40e2fed1cbe0b46750f786d5f8da454ef32fdd1df958c13796ea403e0a67701b58897cf2c623796452dacc231e rust-script-0.34.0.tar.gz
"