From 4b273255da14f4e0328262c43e59bd84c981b3b9 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Mon, 26 Nov 2012 09:16:35 -0600
Subject: powertop: 2.1.1

---
 abs/extra/powertop/ChangeLog          |  3 ---
 abs/extra/powertop/PKGBUILD           | 28 +++++++++++++++++-----------
 abs/extra/powertop/powertop.changelog |  8 ++++++++
 3 files changed, 25 insertions(+), 14 deletions(-)
 delete mode 100644 abs/extra/powertop/ChangeLog
 create mode 100644 abs/extra/powertop/powertop.changelog

diff --git a/abs/extra/powertop/ChangeLog b/abs/extra/powertop/ChangeLog
deleted file mode 100644
index 811f87d..0000000
--- a/abs/extra/powertop/ChangeLog
+++ /dev/null
@@ -1,3 +0,0 @@
-2007-06-28 tardo <tardo@nagi-fanboi.net>
-* Built for x86_64
-
diff --git a/abs/extra/powertop/PKGBUILD b/abs/extra/powertop/PKGBUILD
index 83f906f..efec607 100644
--- a/abs/extra/powertop/PKGBUILD
+++ b/abs/extra/powertop/PKGBUILD
@@ -1,25 +1,31 @@
-# $Id: PKGBUILD 24103 2010-08-19 22:45:29Z heftig $
+# $Id: PKGBUILD 78981 2012-10-28 15:59:46Z jlichtblau $
 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
 # Contributor: Alexander Fehr <pizzapunk gmail com>
 # Contributor: Xilon <xilonmu@gmail.com>
 
 pkgname=powertop
-pkgver=1.13
-pkgrel=2
-pkgdesc="Tool that finds the software that makes your laptop use more power than necessary"
+pkgver=2.1.1
+pkgrel=1
+pkgdesc='A tool to diagnose issues with power consumption and power management'
 arch=('i686' 'x86_64')
-url="http://www.lesswatts.org/projects/powertop/"
+url='https://01.org/powertop/'
 license=('GPL2')
-depends=('ncurses')
-source=(http://www.lesswatts.org/projects/powertop/download/$pkgname-$pkgver.tar.gz)
-md5sums=('78aa17c8f55178004223bf236654298e')
+depends=('gcc-libs' 'libnl' 'ncurses' 'pciutils')
+changelog=$pkgname.changelog
+source=($pkgname-$pkgver.tar.gz::https://github.com/fenrus75/powertop/tarball/v2.1.1)
+#https://01.org/powertop/sites/default/files/downloads/$pkgname-$pkgver.tar.gz)
+sha256sums=('e925230cc9006dbc226aec4dea389b97a0f906a7997b33aca40a1d6bc7568dc4')
 
 build() {
-  cd "$srcdir/powertop-$pkgver"
+  cd ${srcdir}/*-$pkgname-*
+
+  ./autogen.sh
+  ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd "$srcdir/powertop-$pkgver"
-  make DESTDIR="$pkgdir" install
+  cd ${srcdir}/*-$pkgname-*
+
+  make DESTDIR=${pkgdir} install
 }
diff --git a/abs/extra/powertop/powertop.changelog b/abs/extra/powertop/powertop.changelog
new file mode 100644
index 0000000..9a53fc3
--- /dev/null
+++ b/abs/extra/powertop/powertop.changelog
@@ -0,0 +1,8 @@
+2012-10-28 Jaroslav Lichtblau (Dragonlord) <dragonlord@aur.archlinux.org>
+	* powertop 2.1.1-1
+
+2012-08-22 Sébastien Luttringer (seblu) <seblu@aur.archlinux.org>
+	* powertop 2.1-1
+
+2012-05-12 Jaroslav Lichtblau (Dragonlord) <dragonlord@aur.archlinux.org>
+	* powertop 2.0-1
-- 
cgit v0.12

