updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / powertop-git / PKGBUILD
blobd5baf6f4cd6bcb0780f1bf286904ddc8644f21ee
1 # Maintainer: Antony Male <antony.male@gmail.com>
2 # Contributer: J. Kuske <kuskej@yahoo.com>
4 pkgname=powertop-git
5 pkgver=20110127
6 pkgrel=1
7 pkgdesc="Tool that finds the software that makes your laptop use more power than necessary"
8 arch=('i686' 'x86_64')
9 url="http://www.lesswatts.org/projects/powertop/"
10 license=('GPL2')
11 depends=('ncurses' 'libnl' 'zlib')
12 makedepends=('git')
13 provides=('powertop')
14 conflicts=('powertop')
16 _gitroot="git://git.kernel.org/pub/scm/status/powertop/powertop.git"
17 _gitname="powertop"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
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"
37   #
38   # BUILD HERE
39   #
41   make PREFIX=/
44 package() {
45   cd "$srcdir/$_gitname-build"
46   make DESTDIR="$pkgdir/" install
47