pkgname=aria-client
pkgver=20130124
pkgrel=1
pkgdesc="ARIA (Asterisk RadIo Archetecture) Client"
arch=(i686 x86_64)
url="http://abilng.github.com/aria_client"
depends=(python2-pjsua python2-pyqt)
makedepends=('git')
license=('GPLv2')

_gitroot="https://github.com/abilng/aria_client.git"
_gitname="aria_client"

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 --depth 1 $_gitname
  fi

  msg "GIT checkout done or server timeout"
}

package() {
  echo ${pkgdir}
  ${srcdir}/${_gitname-build}/install ${pkgdir}
}