Guest User

Untitled

a guest
Jan 29th, 2019
332
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: fs4000 <matthias_dienstbier[at]yahoo[dot]de>
  2. # Contributor: trapanator <trap[at]trapanator[dot]com>
  3. # Contributor: tomprogrammer <Thomas-Bahn[at]gmx[dot]net>
  4.  
  5. pkgname=phc-intel
  6. _phcver=0.3.2
  7. pkgver=$_phcver.12.29
  8. _realver=pack-rev29
  9. pkgrel=1
  10. pkgdesc="Frequency driver for Intel CPUs with undervolting feature"
  11. url="http://www.linux-phc.org"
  12. arch=('any')
  13. license=('GPL')
  14. depends=('dkms')
  15. provides=('linux-phc')
  16. backup=('etc/default/phc-intel')
  17. install=phc-intel.install
  18. source=($pkgname-$_realver.tar.bz2::$url/forum/download/file.php?id=199
  19. phc-intel.{default,sh,sleep,system-sleep}
  20. dkms.conf)
  21. sha256sums=('1fda34d6b010bd6c016fddaa569727129a8a7bdaeb7a9b0be184b4d9b95571ef'
  22. 'ce08a5a4107be1d5723f1f169d515e67b6c77893f3994fc2d0d2ccf611307ed3'
  23. 'b526f3e8e66f6495531f13f2e6867d3a07b2ec7a7c3b8aa061f22be1cd6e770f'
  24. '569b85988cb38380fec85c25688b76abc24a46601aa8f58eb24eaebf863eebef'
  25. '2e17c90d7bfae8f5070e46388e95d443188eaa7beb5ffdd418a0da090f2e7557'
  26. '7b44882a96eeb7c79dbb7fe5b1ff8cded68c2b6a374c95bdc5e08c414cfd3549')
  27.  
  28. prepare() {
  29. cd $pkgname-$_realver
  30. sed -i 's,/sbin/modprobe phc-intel |,/sbin/modprobe phc-intel \&\& /usr/bin/phc-intel set |,' phc-intel.modprobe
  31. }
  32.  
  33. package() {
  34. install -Dm644 dkms.conf "$pkgdir/usr/src/phc-intel-$_phcver/dkms.conf"
  35. install -Dm644 phc-intel.default "$pkgdir/etc/default/phc-intel"
  36. install -Dm755 phc-intel.sh "$pkgdir/usr/bin/phc-intel"
  37. install -Dm755 phc-intel.sleep "$pkgdir/usr/lib/pm-utils/sleep.d/00phc-intel"
  38. install -Dm755 phc-intel.system-sleep "$pkgdir/usr/lib/systemd/system-sleep/phc-intel"
  39.  
  40. cd $pkgname-$_realver
  41. install -Dm644 phc-intel.modprobe "$pkgdir/usr/lib/modprobe.d/phc-intel.conf"
  42. cp -R inc Makefile "$pkgdir/usr/src/phc-intel-$_phcver/"
  43. }
RAW Paste Data