void-packages/srcpkgs/thinkfan/template

29 lines
815 B
Bash

# Template file for 'thinkfan'
pkgname=thinkfan
version=0.9.3
revision=1
build_style=cmake
configure_args="-DUSE_ATASMART:BOOL=ON"
hostmakedepends="cmake"
makedepends="libatasmart-devel"
short_desc="A simple fan control program"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-3"
homepage="http://thinkfan.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=b61c634996c450445d7e440bf41f7adcda86506063f832afa40d44e01061e45b
post_extract() {
sed -i '/time.h/i#include <sys/types.h>' src/globaldefs.h
}
do_install() {
vbin build/thinkfan
vman src/thinkfan.1
vsconf examples/thinkfan.conf.simple
vsconf examples/thinkfan.conf.complex
vmkdir usr/lib/modprobe.d
vinstall ${FILESDIR}/thinkpad_acpi.conf 644 usr/lib/modprobe.d
vsv thinkfan
}