Skip to content
Snippets Groups Projects
Commit 746dba43 authored by omni's avatar omni Committed by alice
Browse files

testing/systeroid: new aport

parent c0ac7f57
2 merge requests!39304[3.16] main/expat: security upgrade to 2.4.9,!35272testing/systeroid: new aport
Pipeline #135508 passed
# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=systeroid
pkgver=0.2.1
pkgrel=0
pkgdesc="A more powerful alternative to sysctl(8)"
arch="all"
url="https://systeroid.cli.rs/"
license="Apache-2.0"
makedepends="cargo libxcb-dev"
checkdepends="linux-lts-doc xclip"
subpackages="$pkgname-doc $pkgname-tui:_tui $pkgname-tui-doc:_tui_doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/orhun/systeroid/archive/refs/tags/v$pkgver.tar.gz"
# tests get stuck on armhf,
# CONFIG_BSD_PROCESS_ACCT is not set for lts.ppc64le.config
case $CARCH in
armhf|ppc64le) options="!check" ;;
esac
prepare() {
default_prepare
cargo fetch --locked
}
build() {
cargo build --release --frozen -p systeroid
cargo build --release --frozen --no-default-features -p systeroid-tui
}
check() {
cargo test --release --frozen -p systeroid
cargo test --release --frozen --no-default-features -p systeroid-tui
}
package() {
install -Dm0755 target/release/systeroid target/release/systeroid-tui \
-t "$pkgdir"/usr/bin/
install -Dm0644 man8/systeroid.8 -t "$pkgdir"/usr/share/man/man8/
}
_tui() {
pkgdesc="$pkgname terminal user interface"
amove usr/bin/systeroid-tui
}
_tui_doc() {
pkgdesc="$pkgname terminal user interface (documentation)"
cd "$builddir"
install -Dm0644 man8/systeroid-tui.8 -t "$subpkgdir"/usr/share/man/man8/
default_doc
}
sha512sums="
3a4f56de223121f9b83c76a8040eda2a62ca907dedd067282b3851fdf2fbc47eabf9d2b37c825af653e515a6a1fb1018f47f0f315afb2cc79af8e90eb50f1983 systeroid-0.2.1.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment