# Contributor: Frederik Alkærsig (FALKER) pkgname=thinkfan pkgver=0.7.1 pkgrel=1 pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi" arch=('i686' 'x86_64') license=('GPL') source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz "thinkfand") url="http://thinkfan.sourceforge.net/" backup=('etc/thinkfan.conf') build() { cd $srcdir/$pkgname-$pkgver make install -d $startdir/pkg/usr/sbin install $srcdir/$pkgname-$pkgver/thinkfan $startdir/pkg/usr/sbin install -D -m755 ${startdir}/thinkfand ${pkgdir}/etc/rc.d/thinkfan if ! [[ -f /proc/acpi/ibm/fan ]]; then echo "thinkpad_acpi procfs entries don't seem to exist." \ "You'll need to use the generic sysfs hwmon interface. Will use sysfs conf." install -D -m644 thinkfan.conf.sysfs ${pkgdir}/etc/thinkfan.conf else echo "This seems to be a Thinkpad. You should use the IBM" \ "interface. Will use thinkfan conf." install -D -m644 thinkfan.conf.thinkpad ${pkgdir}/etc/thinkfan.conf fi } md5sums=('0e98ec7854edbb8186544f3aec6d95e4' '16fc3a83a1468e3ccaeba67e14ab2177')