mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 01:44:36 +02:00
36 lines
884 B
Text
36 lines
884 B
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=irust
|
|
pkgver=1.73.0
|
|
pkgrel=0
|
|
pkgdesc="Cross-platform Rust REPL"
|
|
url="https://github.com/sigmaSd/IRust"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="cargo rust"
|
|
makedepends="cargo cargo-auditable"
|
|
source="https://github.com/sigmaSd/IRust/archive/irust@$pkgver/irust-$pkgver.tar.gz"
|
|
builddir="$srcdir/IRust-irust-$pkgver"
|
|
options="!check" # FIXME: tests don't run on CI (require TTY)
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
4a32afa3726d39d03e3b9c21c7f1dba0525876a9f8233581db147bbc46dfb2b8472c0f9f1d399adff351c08b2782142ab5a389105b55795a498be279a1d0e3ef irust-1.73.0.tar.gz
|
|
"
|