# Template file for 'framework-system'
pkgname=framework-system
version=0.6.5
revision=1
archs="x86_64*"
build_style=cargo
configure_args="-F nvidia"
hostmakedepends="pkg-config"
makedepends="libgit2-1.9-devel eudev-libudev-devel"
short_desc="Tools to interact with the Framework Computer systems"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/FrameworkComputer/framework-system"
changelog="https://github.com/FrameworkComputer/framework-system/releases"
distfiles="https://github.com/FrameworkComputer/framework-system/archive/refs/tags/v${version}.tar.gz"
checksum=51daef8eac68f3c8b69956f0250a2a4029243a5631a8ee9a537f6d4db730a890

do_install() {
	vbin "target/${RUST_TARGET}/release/framework_tool"
	vcompletion framework_tool/completions/bash/framework_tool bash framework_tool
	vcompletion framework_tool/completions/fish/framework_tool.fish fish framework_tool
	vcompletion framework_tool/completions/zsh/_framework_tool zsh framework_tool
	vlicense LICENSE.md
}
