void-packages/srcpkgs/thinkfan/template
2020-07-30 14:31:58 -04:00

26 lines
770 B
Bash

# Template file for 'thinkfan'
pkgname=thinkfan
version=1.2.1
revision=1
build_style=cmake
configure_args="-DUSE_ATASMART:BOOL=ON"
hostmakedepends="pkg-config"
makedepends="libatasmart-devel yaml-cpp-devel"
short_desc="Simple fan control program"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/vmatare/thinkfan"
distfiles="https://github.com/vmatare/thinkfan/archive/${version}.tar.gz"
checksum=a03fc0ed5bee33a1576c631e327fdd10f89fd906c5a413a8b01bd73d3fd97d25
do_install() {
vbin build/thinkfan
vman src/thinkfan.1
vman src/thinkfan.conf.5
vman src/thinkfan.conf.legacy.5
vsconf examples/thinkfan.yaml
vmkdir usr/lib/modprobe.d
vinstall ${FILESDIR}/thinkpad_acpi.conf 644 usr/lib/modprobe.d
vsv thinkfan
}