mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-17 11:42:31 +02:00
37 lines
1016 B
Plaintext
37 lines
1016 B
Plaintext
maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
|
|
pkgname=amdgpu_top
|
|
pkgver=0.11.0
|
|
pkgrel=0
|
|
pkgdesc="Tool to display AMDGPU usage"
|
|
url="https://github.com/Umio-Yasuno/amdgpu_top"
|
|
# loongarch64: https://github.com/bytecodealliance/rustix/pull/1503
|
|
arch="all !loongarch64"
|
|
license="MIT"
|
|
makedepends="libdrm-dev cargo-auditable"
|
|
subpackages="$pkgname-doc"
|
|
source="amdgpu_top-$pkgver.tar.gz::https://github.com/Umio-Yasuno/amdgpu_top/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net" # fetch dependencies
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --target="$CTARGET" --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 -t "$pkgdir"/usr/bin/ target/$CTARGET/release/amdgpu_top
|
|
install -Dm 644 docs/amdgpu_top.1 -t "$pkgdir"/usr/share/man/man1/
|
|
}
|
|
|
|
sha512sums="
|
|
f64256c35791126e4df9f22d684b24463e7355b02851fffb33f8a7f047a868b8502bbd5a6d18d8777383c8a815243b10557e1765cd3c215678938a6c347858bf amdgpu_top-0.11.0.tar.gz
|
|
"
|