blob: 73c25a483525afd82d2aa10e06907257d8ca80b4 (
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
52
53
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=linux-tools
pkgver=3.14.37
pkgrel=0
pkgdesc="Linux kernel tools meta package"
url="http://www.kernel.org"
arch="noarch"
license="GPL2"
depends="$pkgname-cpupower"
depends_dev="pciutils-dev readline-dev gettext-dev"
makedepends="$depends_dev bash linux-headers"
install=""
subpackages="$pkgname-cpupower"
source="http://ftp.kernel.org/pub/linux/kernel/v3.x/linux-$pkgver.tar.xz"
_builddir="$srcdir"/linux-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
# possible tools: acpi cgroup cpupower firewire lguest perf selftests turbostat
# usb virtio net vm x86_energy_perf_policy tmon"
export CFLAGS="$CFLAGS -lintl"
cd "$_builddir"/tools/power/cpupower
make VERSION=$pkgver-$pkgrel
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"
}
cpupower() {
pkgdesc="Linux kernel tool to examine and tune power saving related features of your processor"
arch="all"
depends=
cd "$_builddir"/tools/power/cpupower
make DESTDIR="$subpkgdir" install || return 1
}
md5sums="43abcb454054c53fb07296e84119edc5 linux-3.14.37.tar.xz"
sha256sums="ccaf13806075aaefc171410282281bdf27f830029a74ea11cd6868bf4f8a04df linux-3.14.37.tar.xz"
sha512sums="4891484ef35e92072c4ee0369cc6437dda4e0b81a38331cbe0e163d82453bbc53cb8084c59ad57bbac5628b4c8e06c93ce3055203838e5d10c94d9776daa0d0e linux-3.14.37.tar.xz"
|