# Template file for 'fan2go'
pkgname=fan2go
version=0.15.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=0bf10cd608c0a2fa55b9237267a7ff2c835697b77110a8d53a1711c07a067c0c
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
}
