Advertisement
Guest User

Updated aur PKGBUILD for phc-intel

a guest
Jun 9th, 2010
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  1. # Maintainer: fs4000 <matthias_dienstbier[at]yahoo[dot]de>
  2. # Maintainer: trapanator <trap[at]trapanator[dot]com>
  3. # Maintainer: tomprogrammer <Thomas-Bahn[at]gmx[dot]net>
  4.  
  5. pkgname=phc-intel
  6. pkgver=0.3.2
  7. pkgrel=12-1
  8. pkgdesc="frequency driver for Intel CPUs with undervolting feature"
  9. url="http://www.linux-phc.org"
  10. arch=('i686' 'x86_64')
  11. license=('GPL')
  12. depends=('kernel26>=2.6.33' 'kernel26<2.6.35')
  13. makedepends=('kernel26-headers>=2.6.33' 'kernel26-headers<2.6.35' 'bzip2')
  14. provides=('linux-phc')
  15. [ "$pkgname" = "phc-intel" ] && backup=(etc/modprobe.d/phc-intel.conf)
  16. install=phc-intel.install
  17. source=(phc-intel-$pkgver-$pkgrel-1.tar.bz2::$url/forum/download/file.php?id=94)
  18. md5sums=('0f55f583f9b62b0f6812a3cd2fd24680')
  19. sha256sums=('4f66989d424d328b205873da1b0363e75f27d7912e0e93c1cad3407c17be8264')
  20.  
  21. build() {
  22.     sed "s/depmod.*/depmod `uname -r`/" -i ../$install
  23.     cd phc-intel-$pkgver-$pkgrel-1
  24.     sed -i 's| /etc/modprobe.d/phc-intel.conf| ${DESTDIR}/etc/modprobe.d/phc-intel.conf|' Makefile
  25.     sed -i 's|^\tdepmod $(KERNELVERSION) -a|#\tdepmod $(KERNELVERSION) -a|' Makefile
  26.     make || return 1
  27.     install -d "$pkgdir/etc/modprobe.d"
  28.     make DESTDIR="$pkgdir" install || return 1
  29.  
  30.     # delete the config if we build for another kernel
  31.     [ "$pkgname" = "phc-intel" ] || rm -r "$pkgdir/etc"
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement