1 # Maintainer: nblock <nblock [/at\] archlinux DOT us>
2 # Contributor: Frederik Alkærsig (FALKER) <havnelisten AT gmail.com>
7 pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi"
10 source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz "thinkfan")
11 url="http://thinkfan.sourceforge.net/"
12 backup=('etc/thinkfan.conf')
13 md5sums=('d1b0d7a05b37cce412ee227cf759a9f6'
14 '16fc3a83a1468e3ccaeba67e14ab2177')
17 cd ${srcdir}/${pkgname}-${pkgver}
19 install -D -m755 ${pkgname} ${pkgdir}/usr/sbin/${pkgname}
20 install -D -m755 ${srcdir}/${pkgname} ${pkgdir}/etc/rc.d/${pkgname}
22 if ! [[ -f /proc/acpi/ibm/fan ]]; then
23 echo "thinkpad_acpi procfs entries don't seem to exist." \
24 "You'll need to use the generic sysfs hwmon interface. Will use sysfs conf."
25 install -D -m644 thinkfan.conf.sysfs ${pkgdir}/etc/thinkfan.conf
27 echo "This seems to be a Thinkpad. You should use the IBM" \
28 "interface. Will use thinkfan conf."
29 install -D -m644 thinkfan.conf.thinkpad ${pkgdir}/etc/thinkfan.conf
33 # vim:set ts=2 sw=2 noet: