Username: Password: Remember me
pkgname=abakus-git 
pkgver=20121027
pkgrel=1
pkgdesc="A simple, keyboard-driven calculator"
arch=('i686' 'x86_64')
url="http://quickgit.kde.org/index.php?p=abakus.git&a=summary"
license=('GPL2')
depends=('kdelibs')
makedepends=('git' 'cmake' 'automoc4')
 
_gitroot="git://anongit.kde.org/abakus "
_gitname="abakus"
 
build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."
 
  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot $_gitname
  fi
 
  msg "GIT checkout done or server timeout"
  msg "Starting make..."
 
  rm -rf "$srcdir/build"
  mkdir "$srcdir/build"
  cd "$srcdir/build"
 
  cmake ../${_gitname} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
  make
}
 
package() {
  cd "$srcdir/build"
  make DESTDIR="$pkgdir" install
}