blob: 1ca047ba274b4121622d69701b657deb9a07f898 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Ben Allen <bensallen@me.com>
pkgname=cpupower
_kver=4.4.14
_kpkgrel=2
pkgver=$_kver
pkgrel=$_kpkgrel
pkgdesc="Linux kernel tool to examine and tune power saving related features of your processor"
url="https://www.kernel.org/"
arch="all"
license="GPL-2.0"
depends_dev="pciutils-dev readline-dev"
makedepends="$depends_dev bash linux-headers"
subpackages="$pkgname-doc $pkgname-dev"
replaces="linux-tools-cpupower"
source="https://kernel.org/pub/linux/kernel/v4.x/linux-$pkgver.tar.xz
cpupower.initd
cpupower.confd
nls.patch
"
builddir="$srcdir"/linux-$pkgver
build() {
cd "$builddir"/tools/power/cpupower
make NLS=false VERSION=$pkgver-$pkgrel
}
package() {
cd "$builddir"/tools/power/cpupower
make NLS=false DESTDIR="$pkgdir" mandir="/usr/share/man" install || return 1
install -Dm755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -Dm644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
}
md5sums="59e99c3bf5d495f1f95d26257962ca3e linux-4.4.14.tar.xz
209e4f95728bd7c7c4ba35c320683a9b cpupower.initd
fc335236f7617b042066c6231d5c9b87 cpupower.confd
b85e224699b4988482a9e624ac415961 nls.patch"
sha256sums="5953ba12797160a68b1068378f826ddac8a298f8f3273876d3bd18222b0555f9 linux-4.4.14.tar.xz
bd7133303c9a0fc892267335b6fb371d6179c6f4251d7f360ae82d7d1f0b321f cpupower.initd
9ab6f022d2b2948660decf5e383984e6ddb9e9e5e6e2761c3031378ddd87e947 cpupower.confd
c2b4dfe619c54e40c36bfbc541f18d57f15e07f1788df4a2e9bc336b443a5860 nls.patch"
sha512sums="c9d4f3e8949cfb715ff2fc4169a12938132f967ad509c154f5c8598c70ac14989364083f1ab29c2fbab120945363f1343f2a30819df9be53938d4ef43391dbc5 linux-4.4.14.tar.xz
97ecfeaaaa8efca7af585316b843bf7be885e88095bbdfbf52bc9a96b14dc862435482781e205ea022ab208978aaa4aabb317354fab890ed514a5088ae5045c8 cpupower.initd
63cd12a4d8782198c71662e9205e346e064b65bae5e3e175b5bc43bdf7ec6ddf675b60349750afe3c37c8a925f9ae9a93530671821342581bd282a69e0773b8c cpupower.confd
f4e8365ddccc26f3dec66311fac04560661934f9ddb888d48c2e67818a0647883e13e8542149f7981f532ff58c002e901ca543061cd0c46c29ea089dfe3ceafe nls.patch"
|