updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kmymoney-git / PKGBUILD
blob0d45a27898c5d420e247eac062d0d682ee7bec27
1 # Contributor: skunktrader <gdarke at skunktrading dot com>
3 pkgname=kmymoney-git
4 conflicts=('kmymoney')
5 replaces=('kmymoney-svn')
6 pkgver=20111211
7 pkgrel=1
8 pkgdesc="A personal finance manager for KDE4."
9 depends=('kdelibs' 'kdebase-runtime' 'kdepimlibs' 'boost' 'libalkimia')
10 makedepends=('git' 'cmake' 'automoc4' 'gettext')
11 optdepends=('libofx: support for OFX import')
12 url=('http://kmymoney2.sourceforge.net/index-home.html')
13 license="GPL"
14 arch=('i686' 'x86_64')
16 _gitroot="git://anongit.kde.org/kmymoney"
17 _gitname="kmymoney"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone --depth=1 $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/build"
34   mkdir -p "$srcdir/build"
35   cd "$srcdir/build"
37   cmake ../${_gitname} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=DebugFull
38   make
41 package() {
42   cd "$srcdir/build"
43   make DESTDIR="$pkgdir/" install