1 # Maintainer: Antony Male <antony.male@gmail.com>
2 # Contributer: J. Kuske <kuskej@yahoo.com>
7 pkgdesc="Tool that finds the software that makes your laptop use more power than necessary"
9 url="http://www.lesswatts.org/projects/powertop/"
11 depends=('ncurses' 'libnl' 'zlib')
14 conflicts=('powertop')
16 _gitroot="git://git.kernel.org/pub/scm/status/powertop/powertop.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
45 cd "$srcdir/$_gitname-build"
46 make DESTDIR="$pkgdir/" install