Advertisement
alinef

cpufreqd_PKGBUILD

Aug 28th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  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>
  5.  
  6. pkgname=cpufreqd
  7. pkgver=2.4.2
  8. pkgrel=5
  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=('cpupower' '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. 'cpupower.patch')
  21. md5sums=('2ca80a77849c9a69b81e27c1843c97f5'
  22. 'ae7b0ec1e8e9f9e7f05fb83749af4ed4'
  23. 'ea85c07e21d1b9aeb96380164ebe341c'
  24. 'f3c8c669bee0b5f39a7e1c26e14bead3'
  25. 'df997964122d19068ab1432af780d09a')
  26.  
  27. build() {
  28. cd ${srcdir}
  29.  
  30. #patch acpi
  31. patch -p0 < cpufreqd_acpi_battery.c.patch
  32.  
  33.  
  34. cd ${pkgname}-${pkgver}
  35.  
  36. #patch for cpupower support
  37. patch -Np1 -i "${srcdir}/cpupower.patch"
  38. autoreconf -i
  39.  
  40. ./configure --prefix=/usr \
  41. --sysconfdir=/etc
  42. make || return 1
  43. }
  44.  
  45. package() {
  46. cd ${srcdir}/${pkgname}-${pkgver}
  47. make DESTDIR=${pkgdir} install || return 1
  48.  
  49. install -Dm755 ${srcdir}/cpufreqd ${pkgdir}/etc/rc.d/cpufreqd || return 1
  50. install -Dm644 ${srcdir}/cpufreqd.service ${pkgdir}/usr/lib/systemd/system/cpufreqd.service || return 1
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement