updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / cpufreqd / PKGBUILD
blob325781c37e4ebb3300b783fdeddd3dfa31bc1c7f
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>
6 pkgname=cpufreqd
7 pkgver=2.4.2
8 pkgrel=3
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"
12 license=('GPL2')
13 depends=('cpufrequtils' 'lm_sensors')
14 backup=('etc/cpufreqd.conf')
15 options=('!libtool')
16 source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
17                 'cpufreqd'
18                 'cpufreqd.service'
19                 'cpufreqd_acpi_battery.c.patch')
20 md5sums=('2ca80a77849c9a69b81e27c1843c97f5'
21          'ae7b0ec1e8e9f9e7f05fb83749af4ed4'
22          'ea85c07e21d1b9aeb96380164ebe341c'
23          'f3c8c669bee0b5f39a7e1c26e14bead3')
25 build() {
26   cd ${srcdir}
27   
28   #patch acpi
29   patch -p0 < cpufreqd_acpi_battery.c.patch
30   
31   cd ${pkgname}-${pkgver}
32   
33   ./configure --prefix=/usr \
34     --sysconfdir=/etc
35   make || return 1
38 package() {
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