updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / batterysystemtray-git / PKGBUILD
blobadbebdc29103ba2fb212d66df9f18a89e7de62d4
1 # Maintainer: PyrO_70 <brieuc.roblin at gmail dot com>
2 pkgname=batterysystemtray-git
3 pkgver=20110601
4 pkgrel=1
5 pkgdesc="A simple battery monitor in the system tray using UPower, in Qt."
6 arch=('i686' 'x86_64')
7 url="http://www.pyrotools.org/"
8 license=('GPL')
9 depends=('qt' 'upower')
10 optdepends=('ucpufreq-git: Chosing governor/frequency per cpu')
11 makedepends=('git')
12 replaces=('batterysystemtray-svn')
14 _gitroot="git://gitorious.org/ptbatterysystemtray/ptbatterysystemtray.git"
15 _gitname="ptbatterysystemtray"
17 build() {
18   cd "$srcdir"
20   msg2 "Connecting to GIT server..."
22   if [ -d $_gitname ] ; then
23     ( cd $_gitname && git pull )
24   else
25     git clone $_gitroot $_gitname
26   fi
27   
28   cd "$_gitname"
30   msg2 "Starting make..."
31   qmake "INSTALL_PREFIX=/usr"
32   make
35 package() {
36   cd "$srcdir/$_gitname"
37   msg2 "Packing..."
38   make "INSTALL_ROOT=$pkgdir" install