updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kthinkbat-svn / PKGBUILD
blob8151b3d0c1d218bed6ffe4518d8dc0f83f5838de
1 # Contributor: buddabrod <buddabrod@gmail.org>
3 arch=('i686' 'x86_64')
4 pkgname=kthinkbat-svn
5 pkgver=227
6 pkgrel=1
7 pkgdesc="Laptop battery monitor for the KDE panel"
8 url="https://lepetitfou.dyndns.org/projects/kthinkbat"
9 license=('GPL')
10 depends=('kdelibs' 'kdebase')
11 makedepends=('subversion' 'autoconf' 'automake')
12 conflicts=('kthinkbat')
13 provides=('kthinkbat')
15 source=()
16 md5sums=()
18 _svntrunk=https://lepetitfou.dyndns.org/svn/kthinkbat/kthinkbat-kicker/trunk
19 _svnmod=kthinkbat-svn
21 build() {
22    cd $startdir/src
23   
24    svn co $_svntrunk $_svnmod -r $pkgver
25   
26    msg "SVN checkout done or server timeout"
27    msg "Starting make..."
28       
29    cp -r $_svnmod $_svnmod-build
30    cd $_svnmod-build
31    
32    make -f Makefile.cvs
33    
34    [ -f /etc/profile.d/qt3.sh ] && source /etc/profile.d/qt3.sh
35    ./configure 
36    make || return 1
37    make DESTDIR=${startdir}/pkg install
38        
39    rm -rf $startdir/src/$_svnmod-build