updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / phc-intel / PKGBUILD
blob66b452b08c6edb69b518b4518fe233f91e939f3f
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>
5 pkgname=phc-intel
6 pkgver=0.3.2.12.4
7 _realver=pack-rev4
8 pkgrel=1
9 pkgdesc="frequency driver for Intel CPUs with undervolting feature"
10 url="http://www.linux-phc.org"
11 arch=('any')
12 license=('GPL')
13 provides=('linux-phc')
14 backup=(etc/conf.d/phc-intel)
15 install=phc-intel.install
16 source=(phc-intel-$_realver.tar.bz2::$url/forum/download/file.php?id=130
17         phc-intel.{conf,rc,sleep})
18 sha256sums=('9209d20bf72d2221380fb7c6c2946d2a9c468d4f7d7a007da8d71f82f91b366a'
19             'ce08a5a4107be1d5723f1f169d515e67b6c77893f3994fc2d0d2ccf611307ed3'
20             '8f733378f5e010199eb368604566961ae9b59647cbd4f746da93ed480520bea9'
21             '3269294d901844d589e7c95d30baf74bcdf8863124290cca3f040b0ffac91ba5')
23 build() {
24         cd phc-intel-$_realver
25         sed -e 's,$(DESTDIR)/lib/modules/$(KERNELRELEASE)/extra$,$(DESTDIR)/lib/modules/$(KERNELRELEASE)/extramodules,' \
26                 -e 's,^\tinstall -m 644 -o root -g root phc-intel.modprobe,#\tinstall -m 644 -o root -g root phc-intel.modprobe,' -i Makefile
27         sed -i 's,/sbin/modprobe phc-intel |,/sbin/modprobe phc-intel \&\& /etc/rc.d/phc-intel set |,' phc-intel.modprobe
30 package() {
31         install -Dm644 phc-intel.conf "$pkgdir/etc/conf.d/phc-intel"
32         install -Dm755 phc-intel.rc "$pkgdir/etc/rc.d/phc-intel"
33         install -Dm755 phc-intel.sleep "$pkgdir/usr/lib/pm-utils/sleep.d/00phc-intel"
35         cd phc-intel-$_realver
36         install -Dm644 phc-intel.modprobe "$pkgdir/lib/modprobe.d/phc-intel.conf"
37         install -d "$pkgdir/usr/src/phc-intel/"
38         cp -R inc Makefile "$pkgdir/usr/src/phc-intel/"