Username: Password: Remember me
# Maintainer: yimm
 
pkgname=artikulate-git
pkgver=20130226
pkgrel=1
pkgdesc="Listen to your own pronunciation and compare it native speakers."
arch=('i686' 'x86_64')
url="http://quickgit.kde.org/?p=artikulate.git"
license=('GPL')
makedepends=('git' 'cmake' 'automoc4')
depends=('kde-workspace' 'qt-mobility')
 
 
_gitroot="git://anongit.kde.org/artikulate"
_gitname="artikulate"
 
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
}