This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

sflphone

By: ava1ar on Aug 22nd, 2012  |  syntax: Bash  |  size: 1.30 KB  |  views: 135  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Christoph Wiechert <wio@psitrax.de>
  2. # Contributor: Aliaksandr Stelmachonak <mail(at)ava1ar(dot)info>
  3.  
  4. pkgname=sflphone-kde
  5. pkgver=1.2.3
  6. pkgrel=2
  7. pkgdesc="SIP/IAX2 softphone"
  8. url="http://www.sflphone.org"
  9. arch=('x86_64' 'i686')
  10. license=('GPL3')
  11. depends=('kdelibs' 'libpulse' 'libzrtpcpp' 'libyaml' 'dbus-c++' 'speex' 'libsamplerate' 'kdepimlibs')
  12. makedepends=('autoconf' 'cmake' 'boost' 'automoc4')
  13. options=(!makeflags)
  14. conflicts=('sflphone')
  15. source=(https://projects.savoirfairelinux.com/attachments/download/6423/sflphone-${pkgver}.tar.gz
  16.         http://download.kde.org/stable/sflphone/1.2.3/src/sflphone-client-kde-${pkgver}.tar.xz)
  17. md5sums=('774eb07bbfc0717ad1e0090623e34616' 'df7b6e4e8cd65cf5e48406f3e3ff32d7')
  18.  
  19. build() {
  20.   # PJSIP
  21.   cd "${srcdir}/sflphone-${pkgver}/daemon/libs/pjproject-2.0.1"
  22.   ./configure
  23.   make dep
  24.   make
  25.  
  26.   # Daemon
  27.   cd "${srcdir}/sflphone-${pkgver}/daemon"
  28.   ./autogen.sh
  29.   ./configure --prefix="/usr" --disable-ilbc
  30.    make
  31.    
  32.   # KDE client
  33.   cd "${srcdir}/sflphone-client-kde-${pkgver}"
  34.   ./config.sh --prefix="/usr"
  35.   cd build
  36.   make
  37. }
  38.  
  39. package() {
  40.   # daemon
  41.   cd "${srcdir}/sflphone-${pkgver}/daemon"
  42.   make DESTDIR="${pkgdir}" install
  43.  
  44.   # KDE client
  45.   cd "${srcdir}/sflphone-client-kde-${pkgver}/build"
  46.   make DESTDIR="${pkgdir}" install
  47. }
clone this paste RAW Paste Data