summaryrefslogtreecommitdiffstats
path: root/abs/extra/powertop/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/powertop/PKGBUILD')
-rw-r--r--abs/extra/powertop/PKGBUILD28
1 files changed, 17 insertions, 11 deletions
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
}