mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-04 23:42:07 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
|
|
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
|
|
pkgname=procs
|
|
pkgver=0.8.16
|
|
pkgrel=0
|
|
pkgdesc="A modern replacement for ps written in Rust"
|
|
url="https://github.com/dalance/procs"
|
|
arch="x86_64 armv7 armhf !aarch64 x86 ppc64le" # limited by rust/cargo (aarch64 due to MAP_32BIT in nix package)
|
|
arch="$arch !armhf !armv7 !x86" # test_run test_run_insert and test_run_tree fail, x86 fails to build
|
|
license="MIT"
|
|
options="net"
|
|
makedepends="cargo"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/dalance/procs/archive/v$pkgver.tar.gz"
|
|
|
|
# disable stack protector on x86 due linking error in cc package
|
|
case "$CARCH" in
|
|
x86)
|
|
export CFLAGS="$CFLAGS -fno-stack-protector"
|
|
;;
|
|
esac
|
|
|
|
export CARGO_HOME="$srcdir"/cargo
|
|
|
|
build() {
|
|
cargo build \
|
|
--release \
|
|
--verbose
|
|
}
|
|
|
|
check() {
|
|
cargo test --all \
|
|
--release \
|
|
--verbose
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
|
|
}
|
|
|
|
sha512sums="b3380cd7eb98b4d3a13888f67032269176f05689e507466c149de91af056379969b80cc5e59d3f7dd10c29507644dd3b816f0022d42feb4a31a4afdfdd036ca3 procs-0.8.16.tar.gz"
|