6 pkgdesc="A free VoIP softphone, superseding WengoPhone. This is the latest repository source code."
8 url="http://www.${realname}.org/"
10 depends=("libstdc++5" "qt" "openssl" "gnutls" "e2fsprogs" "libxml2" "speex" "ffmpeg" "portaudio" "alsa-lib" "libsndfile" "libsamplerate" "curl" "libosip2")
11 makedepends=("gcc" "cmake" "qt" "boost" "glib2" "mercurial")
12 conflicts=("wengophone2" "${realname}")
13 #replaces=("wengophone2")
15 source=(new-videodev.patch)
17 _hgroot="http://hg.${realname}.org/"
18 _hgrepo="${realname}-3.0"
21 #cd ${srcdir}/${realname}-${realver}/build/
25 msg "Connecting to Mercurial server...."
26 # update the repo, else clone a new one
27 if [ -d ${_hgrepo} ]; then
29 hg pull -u || return 1
31 hg clone ${_hgroot}/${_hgrepo} || return 1
34 msg "Mercurial checkout done or server timeout"
36 msg "Cloning wokring directory"
38 rm -rf ${srcdir}/${_hgrepo}-build 2>/dev/null
39 cp -a ${_hgrepo} ${_hgrepo}-build
42 msg "Starting make..."
45 # patch -Np1 -i ../new-videodev.patch || return 1
49 cmake .. -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev || return 1
51 make DESTDIR=${pkgdir} install || return 1
53 rm -rf ${srcdir}/${_hgrepo}-build 2>/dev/null
56 md5sums=('52b536108d9c9aabe6e07a18f72db81b')