updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / thinkfan / PKGBUILD
blob6d47da03b0b98598063cab75f1c728a71f62c29c
1 # Maintainer: nblock <nblock [/at\] archlinux DOT us>
2 # Contributor: Frederik Alkærsig (FALKER) <havnelisten AT gmail.com>
4 pkgname=thinkfan
5 pkgver=0.7.3
6 pkgrel=1
7 pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi"
8 arch=('i686' 'x86_64')
9 license=('GPL')
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')
16 build() {
17     cd ${srcdir}/${pkgname}-${pkgver}
18     make
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
26     else
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
30     fi
33 # vim:set ts=2 sw=2 noet: