1 # Maintainer: evr <evanroman @ gmail>
2 # Maintainer: Simon Legner <Simon.Legner@gmail.com>
7 pkgdesc="Monitors temperatures and controls fan speed of IBM/Lenovo ThinkPad notebooks."
9 url="http://www.gambitchess.org/mediawiki/index.php/ThinkPad_Fan_Control"
11 depends=(python2 hal dbus-python pygobject)
12 optdepends=(tpfan-admin tpfand-profiles)
13 source=(http://launchpad.net/tp-fan/tpfand/$pkgver/+download/tpfand-$pkgver.tar.gz tpfand.DAEMON tpfand.PMUTILS)
16 cd "$srcdir/$pkgname-$pkgver"
18 sed -i 's|#! /usr/bin/env python|#! /usr/bin/env python2|' src/tpfand/* wrappers/tpfand
20 install -d $pkgdir/usr/lib/python2.7/site-packages/tpfand
21 install -m644 src/tpfand/* $pkgdir/usr/lib/python2.7/site-packages/tpfand
22 install -d $pkgdir/usr/share/tpfand/models/{by-id,by-name}
23 install -m644 share/models/generic $pkgdir/usr/share/tpfand/models
24 install -d $pkgdir/etc/dbus-1/system.d/
25 install -m644 etc/dbus-1/system.d/* $pkgdir/etc/dbus-1/system.d/
26 install -d $pkgdir/usr/sbin
27 install wrappers/tpfand $pkgdir/usr/sbin/
28 install -d $pkgdir/etc/modprobe.d
29 install -m644 etc/modprobe.d/thinkpad_acpi.modprobe $pkgdir/etc/modprobe.d/thinkpad_acpi.conf
30 if [ -e /etc/tpfand.conf ]
31 then install -m644 /etc/tpfand.conf $pkgdir/etc/tpfand.conf
32 else install -m644 etc/tpfand.conf $pkgdir/etc/tpfand.conf
34 install -D -m755 $srcdir/tpfand.DAEMON $pkgdir/etc/rc.d/tpfand
35 install -D -m755 $srcdir/tpfand.PMUTILS $pkgdir/etc/pm/sleep.d/09tpfand
38 md5sums=('fa08a5c3eebd47842e1fb84b6283416d'
39 'c6dfc84ea0ccff47ef8dfc02dc8898d8'
40 'aa05644ace593d595598666d1513f472')