# Template file for 'amdgpu_top'
pkgname=amdgpu_top
version=0.11.5
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="libdrm-devel"
short_desc="Tool to display AMDGPU usage"
maintainer="al20ov <nicolas.antauf@gmail.com>"
license="MIT"
homepage="https://github.com/Umio-Yasuno/amdgpu_top"
distfiles="https://github.com/Umio-Yasuno/amdgpu_top/archive/refs/tags/v${version}.tar.gz"
checksum=e511ed15a6e0f3ea72321dfc97145ffb85999b37b6b304e9795978945f3f04cd

do_install() {
	vbin target/${RUST_TARGET}/release/amdgpu_top

	vman docs/amdgpu_top.1

	vinstall assets/amdgpu_top-tui.desktop 644 usr/share/applications
	vinstall assets/amdgpu_top.desktop 644 usr/share/applications

	vinstall assets/io.github.umio_yasuno.amdgpu_top.metainfo.xml 644 usr/share/metainfo

	vlicense LICENSE
}
