pkgname=qxmlrpc
pkgver=6
pkgrel=1
pkgdesc="a full Qt4 based implementation of XML-RPC protocol"
arch=('any')
url="https://code.google.com/p/qxmlrpc"
license=('LGPL')
makedepends=('subversion')
_svntrunk="http://qxmlrpc.googlecode.com/svn/trunk/"
_svnmod="qxmlrpc"

build() {
    msg "Connecting to SVN server...."

    if [[ -d "$_svnmod/.svn" ]]; then
        (cd "$_svnmod" && svn up -r "$pkgver")
    else
        svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
    fi

    msg "SVN checkout done or server timeout"
}

package() {
  export PKGEXT=.src.tar.xz
  export PKGDEST=${SRCDEST}

  mv ${srcdir}/${_svnmod} ${pkgdir}/

}