1 # Maintainer: Blaž Tomažič <blaz.tomazic@gmail.com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Kevin Piche <kevin@archlinux.org>
4 # Contributor: Manolis Tzanidakis <manolis@archlinux.org>
9 pkgdesc="A small daemon to adjust cpu speed (and indeed voltage)"
10 arch=('i686' 'x86_64')
11 url="http://www.linux.it/~malattia/wiki/index.php/Cpufreqd"
13 depends=('cpufrequtils' 'lm_sensors')
14 backup=('etc/cpufreqd.conf')
16 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
19 'cpufreqd_acpi_battery.c.patch')
20 md5sums=('2ca80a77849c9a69b81e27c1843c97f5'
21 'ae7b0ec1e8e9f9e7f05fb83749af4ed4'
22 'ea85c07e21d1b9aeb96380164ebe341c'
23 'f3c8c669bee0b5f39a7e1c26e14bead3')
29 patch -p0 < cpufreqd_acpi_battery.c.patch
31 cd ${pkgname}-${pkgver}
33 ./configure --prefix=/usr \
39 cd ${srcdir}/${pkgname}-${pkgver}
40 make DESTDIR=${pkgdir} install || return 1
42 install -Dm755 ${srcdir}/cpufreqd ${pkgdir}/etc/rc.d/cpufreqd || return 1
43 install -Dm644 ${srcdir}/cpufreqd.service ${pkgdir}/lib/systemd/system/cpufreqd.service || return 1