updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / skrooge-git / PKGBUILD
blobc8840dd53d9eade55c50fcc0a58b0a63a6e7ca6c
1 # Maintainer: Rick W. Chen <stuffcorpse@archlinux.us>
2 pkgname=skrooge-git
3 pkgver=20110329
4 pkgrel=1
5 pkgdesc="A personal finances manager for KDE4"
6 arch=('i686' 'x86_64')
7 url="http://skrooge.org/"
8 license=('GPL')
9 depends=('kdebase-runtime' 'libofx')
10 makedepends=('git' 'gcc' 'cmake' 'automoc4' 'kdesdk-scripts' 'xdg-utils')
11 provides=('skrooge')
12 conflicts=('skrooge-svn')
13 install=${pkgname}.install
15 _gitroot="git://anongit.kde.org/skrooge"
16 _gitname="skrooge"
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
27   fi
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
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make DESTDIR="$pkgdir/" install