updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cpupowerutils / PKGBUILD
blobd0c9beef211ec4b12a9d2ca2079001a1fae4e694
1 # Maintainer: Grigorios Bouzakis <grbzks@xsmail.com>
2 pkgname=cpupowerutils
3 pkgver=20110314
4 pkgrel=1
5 pkgdesc="CPU power utilities"
6 arch=('i686' 'x86_64')
7 url="http://gitorious.org/cpupowerutils"
8 license=('GPL2')
9 depends=('pciutils')
10 makedepends=('git')
11 provides=('cpufrequtils')
12 conflicts=('cpufrequtils')
13 options=('!makeflags')
15 _gitroot="git://gitorious.org/cpupowerutils/cpupowerutils.git"
16 _gitname="cpupowerutils"
18 build() {
19   cd $srcdir
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname -b cpupowerutils
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf $srcdir/$_gitname-build
33   git clone $srcdir/$_gitname $srcdir/$_gitname-build
34   cd $srcdir/$_gitname-build
36   unset LDFLAGS
38   make
41 package() {
42   cd $srcdir/$_gitname-build
44   unset LDFLAGS
46   make INSTALL=/bin/install mandir=/usr/share/man DESTDIR=$pkgdir install
49 # vim:set ts=2 sw=2 et: