Don't like ads? PRO users don't see any ads ;-)

sflphone

By: ava1ar on Aug 22nd, 2012  |  syntax: Bash  |  size: 0.99 KB  |  hits: 52  |  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. pkgname=sflphone
  2. pkgver=1.2.0
  3. pkgrel=1
  4. pkgdesc="SIP/IAX2 compatible softphone"
  5. arch=('i686' 'x86_64')
  6. url="http://www.sflphone.org/"
  7. license=('GPL3')
  8. depends=('commoncpp2' 'ucommon' 'ccrtp' 'libzrtpcpp' 'dbus-c++')
  9. makedepends=('autoconf')
  10. source=("https://projects.savoirfairelinux.com/attachments/download/4174/${pkgname}-${pkgver}.tar.gz")
  11. sha1sums=('dd1d937efebf94efa9b3f1220216d5c57416832a')
  12. options=(!makeflags)
  13.  
  14. build() {
  15.   cd ${srcdir}/${pkgname}-${pkgver}
  16.  
  17.   # PJSIP
  18.   cd ${srcdir}/${pkgname}-${pkgver}/daemon/libs/pjproject
  19.   ./configure --disable-ilbc-codec
  20.   make dep
  21.   make
  22.  
  23.   # daemon
  24.   cd ${srcdir}/${pkgname}-${pkgver}/daemon
  25.   ./autogen.sh
  26.   ./configure --prefix=/usr
  27.   make
  28.   make prefix="$pkgdir/usr" install
  29.  
  30.   # KDE client
  31.   cd "${srcdir}/${pkgname}-${pkgver}/kde"
  32.   ./config.sh --prefix=${pkgdir}/usr
  33.   cd build
  34.   make
  35.   make install
  36.  
  37.   mkdir ${pkgdir}/usr/lib/sflphone/audio
  38.   mv ${pkgdir}/usr/lib/sflphone/codecs/ ${pkgdir}/usr/lib/sflphone/audio/
  39. }