Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: fs4000 <matthias_dienstbier[at]yahoo[dot]de>
- # Maintainer: trapanator <trap[at]trapanator[dot]com>
- # Maintainer: tomprogrammer <Thomas-Bahn[at]gmx[dot]net>
- pkgname=phc-intel
- pkgver=0.3.2
- pkgrel=12-1
- pkgdesc="frequency driver for Intel CPUs with undervolting feature"
- url="http://www.linux-phc.org"
- arch=('i686' 'x86_64')
- license=('GPL')
- depends=('kernel26>=2.6.33' 'kernel26<2.6.35')
- makedepends=('kernel26-headers>=2.6.33' 'kernel26-headers<2.6.35' 'bzip2')
- provides=('linux-phc')
- [ "$pkgname" = "phc-intel" ] && backup=(etc/modprobe.d/phc-intel.conf)
- install=phc-intel.install
- source=(phc-intel-$pkgver-$pkgrel-1.tar.bz2::$url/forum/download/file.php?id=94)
- md5sums=('0f55f583f9b62b0f6812a3cd2fd24680')
- sha256sums=('4f66989d424d328b205873da1b0363e75f27d7912e0e93c1cad3407c17be8264')
- build() {
- sed "s/depmod.*/depmod `uname -r`/" -i ../$install
- cd phc-intel-$pkgver-$pkgrel-1
- sed -i 's| /etc/modprobe.d/phc-intel.conf| ${DESTDIR}/etc/modprobe.d/phc-intel.conf|' Makefile
- sed -i 's|^\tdepmod $(KERNELVERSION) -a|#\tdepmod $(KERNELVERSION) -a|' Makefile
- make || return 1
- install -d "$pkgdir/etc/modprobe.d"
- make DESTDIR="$pkgdir" install || return 1
- # delete the config if we build for another kernel
- [ "$pkgname" = "phc-intel" ] || rm -r "$pkgdir/etc"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement