Advertisement
Guest User

phc-intel

a guest
Apr 16th, 2018
675
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.86 KB | None | 0 0
  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.26
  8. _realver=pack-rev26
  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=195
  19.         phc-intel.{default,sh,sleep,system-sleep}
  20.         dkms.conf)
  21. sha256sums=('44be6944c34bba6553b6bb9895636b16cb023ea63a9019b7d13655f386f8bb4c'
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement