aboutsummaryrefslogtreecommitdiffstats
path: root/community/ion-shell/APKBUILD
blob: 55ee941c444132afb1efe10fffc2674a68dd4eeb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=ion-shell
pkgver=1.0.5_git20210109
pkgrel=0
_commit=c2bf1a3fc562d577a3f39eb203abe8a024dd3478
pkgdesc="modern system shell with simple, yet powerful, syntax"
url="https://doc.redox-os.org/ion-manual/html/"
# ppc64le: Rust SIGSEGVs when compiling
arch="all !s390x !mips !mips64 !riscv64" # limited by cargo
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"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm0755 target/release/ion -t "$pkgdir"/usr/bin
}

sha512sums="19ccf28b6d012a5d22019e46e0c85c419b5c49c0b385ab9b7aaa85678679367d261925382fccc9d2c1404b05fa833a466fb21aecb46bd61b28902250f520210f  ion-shell-c2bf1a3fc562d577a3f39eb203abe8a024dd3478.tar.gz"