# Template file for 'thinkfan'
pkgname=thinkfan
version=2.0.0
revision=1
build_style=cmake
configure_args="-DUSE_ATASMART:BOOL=ON"
hostmakedepends="pkg-config"
makedepends="libatasmart-devel yaml-cpp-devel libsensors-devel"
short_desc="Simple fan control program"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/vmatare/thinkfan"
distfiles="https://github.com/vmatare/thinkfan/archive/${version}.tar.gz"
checksum=0fc94eb378dcba8c889e91f41dab3a8d6eebc7324a59a0704cc39aa66551987e

post_install() {
	rm -r ${DESTDIR}/usr/share/doc

	vsconf examples/thinkfan.yaml

	vmkdir usr/lib/modprobe.d
	vinstall ${FILESDIR}/thinkpad_acpi.conf 644 usr/lib/modprobe.d
	vsv thinkfan
}
