mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
this is a million times faster new only in rust 1.68, and fails on older versions, but we have only latest in aports and don't support anything else, so it's okay.
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: omni <omni+alpine@hack.org>
|
|
pkgname=ion-shell
|
|
pkgver=1.0.5_git20220727
|
|
pkgrel=0
|
|
_commit=fc153ac4e83d879ab70208c5452faae2e7d69b6b
|
|
pkgdesc="modern system shell with simple, yet powerful, syntax"
|
|
url="https://doc.redox-os.org/ion-manual/"
|
|
arch="all !s390x !riscv64" # s390x blocked by nix crate
|
|
license="MIT"
|
|
makedepends="cargo"
|
|
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
|
|
source="$pkgname-$_commit.tar.gz::https://gitlab.redox-os.org/redox-os/ion/-/archive/$_commit.tar.gz"
|
|
builddir="$srcdir/ion-$_commit"
|
|
|
|
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --release --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 target/release/ion -t "$pkgdir"/usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
d997e9666f032bbbed5adc448ad524f5367bd1825047a14204cb31a6e6535f13e452dc2806c79f8c70de60ca2af8555a3c96a25ebf705eaf37ae0005ccf7d838 ion-shell-fc153ac4e83d879ab70208c5452faae2e7d69b6b.tar.gz
|
|
"
|