void-packages/srcpkgs/thinkfan/template

33 lines
871 B
Bash
Raw Normal View History

2014-07-16 17:01:50 +00:00
# Template file for 'thinkfan'
pkgname=thinkfan
version=0.9.2
2015-05-17 14:10:44 +00:00
revision=3
2014-07-16 17:01:50 +00:00
wrksrc=${pkgname}-${version}
create_wrksrc=yes
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=90daa0f2db221e1d5085d7f25cb6c63608d174db2987478c340e9523e652af79
2015-05-17 14:10:44 +00:00
post_extract() {
sed -i '1i#include <sys/types.h>' globaldefs.h
}
2014-07-16 17:01:50 +00:00
do_install() {
vbin build/thinkfan
vman thinkfan.1
vsconf examples/thinkfan.conf.simple
vsconf examples/thinkfan.conf.complex
vdoc README
vdoc NEWS
vmkdir usr/lib/modprobe.d
vinstall ${FILESDIR}/thinkpad_acpi.conf 644 usr/lib/modprobe.d
2015-05-03 12:03:31 +00:00
vsv thinkfan
2014-07-16 17:01:50 +00:00
}