updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qutecom-hg / PKGBUILD
blob4d7de58bc9dab1691405e8e51379fca9940ae9fb
1 realname=qutecom
2 pkgname=${realname}-hg
3 pkgver=450
4 realver=3.0
5 pkgrel=1
6 pkgdesc="A free VoIP softphone, superseding WengoPhone.  This is the latest repository source code."
7 arch=("i686" "x86_64")
8 url="http://www.${realname}.org/"
9 license=("GPL")
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")
14 options=(!emptydirs)
15 source=(new-videodev.patch)
16 md5sums=()
17 _hgroot="http://hg.${realname}.org/"
18 _hgrepo="${realname}-3.0"
20 build() {
21         #cd ${srcdir}/${realname}-${realver}/build/
22         cd ${srcdir}
24         # Repository
25         msg "Connecting to Mercurial server...."
26         # update the repo, else clone a new one
27         if [ -d ${_hgrepo} ]; then
28                 cd ${_hgrepo}/
29                 hg pull -u || return 1
30         else
31                 hg clone ${_hgroot}/${_hgrepo} || return 1
32                 cd ${_hgrepo}/
33         fi
34         msg "Mercurial checkout done or server timeout"
36         msg "Cloning wokring directory"
37         cd ${srcdir}
38         rm -rf ${srcdir}/${_hgrepo}-build 2>/dev/null
39         cp -a ${_hgrepo} ${_hgrepo}-build
40         cd ${_hgrepo}-build
42         msg "Starting make..."
44         # Patches
45 #       patch -Np1 -i ../new-videodev.patch || return 1
47         # Build
48         cd qutecom
49         cmake .. -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev || return 1
50         make || return 1
51         make DESTDIR=${pkgdir} install || return 1
52         
53         rm -rf ${srcdir}/${_hgrepo}-build 2>/dev/null
56 md5sums=('52b536108d9c9aabe6e07a18f72db81b')