# $Id: PKGBUILD 24103 2010-08-19 22:45:29Z heftig $
# 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"
arch=('i686' 'x86_64')
url="http://www.lesswatts.org/projects/powertop/"
license=('GPL2')
depends=('ncurses')
source=(http://www.lesswatts.org/projects/powertop/download/$pkgname-$pkgver.tar.gz)
md5sums=('78aa17c8f55178004223bf236654298e')

build() {
  cd "$srcdir/powertop-$pkgver"
  make
}

package() {
  cd "$srcdir/powertop-$pkgver"
  make DESTDIR="$pkgdir" install
}