1 # Contributor: Marco Tangaro <marco_tangaro@hotmail.com>
6 pkgdesc="A small tool based on Qt4 to display battery stats in system tray"
8 url="http://repo.or.cz/w/qbat.git"
11 makedepends=('git' 'cmake')
15 _gitroot="git://repo.or.cz/qbat.git"
20 msg "Connecting to GIT server...."
22 if [ -d $srcdir/$_gitname ] ; then
23 (cd $_gitname && git pull origin)
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone $_gitname $_gitname-build
36 sed -i '1a\#include <cstdio>' common.cpp >t
38 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr . || return 1
40 make DESTDIR=$pkgdir install || return 1
42 install -Dm755 qbat $pkgdir/usr/bin/qbat
43 install -Dm644 res/qbat.png $pkgdir/usr/share/qbat/icons/qbat.png
44 install -m644 res/qbat2.svg $pkgdir/usr/share/qbat/icons/qbat2.svg
45 install -Dm644 qbat.desktop $pkgdir/usr/share/applications/qbat.desktop