summaryrefslogtreecommitdiff
path: root/community/powertop/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/powertop/PKGBUILD')
-rw-r--r--community/powertop/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/powertop/PKGBUILD b/community/powertop/PKGBUILD
new file mode 100644
index 000000000..6285290c5
--- /dev/null
+++ b/community/powertop/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 91995 2013-05-30 21:12:52Z lcarlier $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+# Contributor: Xilon <xilonmu@gmail.com>
+
+pkgname=powertop
+pkgver=2.3
+pkgrel=2
+pkgdesc='A tool to diagnose issues with power consumption and power management'
+arch=('i686' 'x86_64')
+url='https://01.org/powertop/'
+license=('GPL2')
+depends=('gcc-libs' 'libnl' 'ncurses' 'pciutils')
+changelog=$pkgname.changelog
+source=(https://01.org/powertop/sites/default/files/downloads/$pkgname-$pkgver.tar.gz)
+sha256sums=('b8c1add69afee28c77dca56fdcedb4a46820f3a71c86aae7891b0c5c595cd744')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+}