# Template file for 'fan2go'
pkgname=fan2go
version=0.14.0
revision=1
build_style=go
go_import_path="github.com/markusressel/fan2go"
go_ldflags="-X ${go_import_path}/cmd/global.Version=${version}"
makedepends="libsensors-devel"
short_desc="Dynamic fan speed control daemon"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="AGPL-3.0-or-later"
homepage="https://github.com/markusressel/fan2go"
distfiles="https://github.com/markusressel/fan2go/archive/refs/tags/${version}.tar.gz"
checksum=2a9d4b2ec2b056dbfa90246848761985743570931da3aea5c5094e076f4145ae
make_check=no # needs root

if [ "$XBPS_TARGET_LIBC" != "glibc" ]; then
	# nvml is glibc only
	go_build_tags+=" disable_nvml"
fi

post_install() {
	vsconf fan2go.yaml
	vlicense LICENSE
}
