1 # Maintainer: Rick W. Chen <stuffcorpse@archlinux.us>
5 pkgdesc="A personal finances manager for KDE4"
7 url="http://skrooge.org/"
9 depends=('kdebase-runtime' 'libofx')
10 makedepends=('git' 'gcc' 'cmake' 'automoc4' 'kdesdk-scripts' 'xdg-utils')
12 conflicts=('skrooge-svn')
13 install=${pkgname}.install
15 _gitroot="git://anongit.kde.org/skrooge"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
36 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
42 cd "$srcdir/$_gitname-build"
43 make DESTDIR="$pkgdir/" install