aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/linux-tools/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/linux-tools/APKBUILD b/testing/linux-tools/APKBUILD
new file mode 100644
index 0000000000..73c25a4835
--- /dev/null
+++ b/testing/linux-tools/APKBUILD
@@ -0,0 +1,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"