Advertisement
Guest User

qutecom-hg PKGBUILD

a guest
Aug 15th, 2010
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. # QuteCom-Hg: Installer: Arch
  2. # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
  3.  
  4. realname=qutecom
  5. pkgname=${realname}-hg
  6. pkgver=599
  7. realver=2.2-RC3
  8. pkgrel=1
  9. pkgdesc="A free VoIP softphone, superseding WengoPhone. This is the latest repository source code."
  10. arch=("i686" "x86_64")
  11. url="http://www.${realname}.org/"
  12. license=("GPL")
  13. depends=("libstdc++5" "qt" "openssl" "gnutls" "e2fsprogs" "libxml2" "speex" "ffmpeg" "portaudio" "alsa-lib" "libsndfile" "libsamplerate" "curl" "libosip2")
  14. makedepends=("gcc" "cmake" "qt" "boost" "glib2" "mercurial")
  15. conflicts=("wengophone2" "${realname}")
  16. #replaces=("wengophone2")
  17. options=(!emptydirs)
  18. source=()
  19. md5sums=()
  20. _hgroot="http://hg.${realname}.org/"
  21. _hgrepo="${realname}-2.2"
  22.  
  23. build() {
  24. #cd ${srcdir}/${realname}-${realver}/build/
  25. cd ${srcdir}
  26.  
  27. # Repository
  28. msg "Connecting to Mercurial server...."
  29. # update the repo, else clone a new one
  30. if [ -d ${_hgrepo} ]; then
  31. cd ${_hgrepo}/
  32. hg pull -u || return 1
  33. else
  34. hg clone ${_hgroot}/${_hgrepo} || return 1
  35. cd ${_hgrepo}/
  36. fi
  37. msg "Mercurial checkout done or server timeout"
  38.  
  39. msg "Cloning wokring directory"
  40. cd ${srcdir}
  41. rm -rf ${srcdir}/${_hgrepo}-build 2>/dev/null
  42. cp -a ${_hgrepo} ${_hgrepo}-build
  43. cd ${_hgrepo}-build/build/
  44.  
  45. msg "Starting make..."
  46.  
  47. # Patches
  48. #patch -Np1 < ${startdir}/extra/dtmf_mode.diff || return 1
  49.  
  50. # Build
  51. cmake .. -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev || return 1
  52. make || return 1
  53. make DESTDIR=${pkgdir} install || return 1
  54.  
  55. rm -rf ${srcdir}/${_hgrepo}-build 2>/dev/null
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement