aboutsummaryrefslogtreecommitdiffstats
path: root/testing/linux-tools/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-04-11 00:45:33 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-04-11 00:45:55 +0200
commit199f160a2a497eb684b072d67e95096594dc8098 (patch)
treef7aeb7438a95ef53024a8f5b0f23591a0255c761 /testing/linux-tools/APKBUILD
parent42953ed490a8b4d832288b37fe8418dcf0d69dcd (diff)
downloadaports-199f160a2a497eb684b072d67e95096594dc8098.tar.bz2
aports-199f160a2a497eb684b072d67e95096594dc8098.tar.xz
testing/linux-tools: new aport
Diffstat (limited to 'testing/linux-tools/APKBUILD')
-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"