summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f27f708018f9841914e4c9a0f20ee014713a2b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=flexisip
pkgver=2.0.3
pkgrel=1
pkgdesc="A general purpose SIP proxy with media capabilities"
arch=('x86_64')
url="http://flexisip.org"
license=('AGPL3')
groups=()
depends=('bctoolbox' 'belle-sip>=4.3' 'belr' 'hiredis' 'liblinphone' 'mediastreamer>=4.3' 'protobuf' 'soci' 'sofia-sip-bc>=1.13.41bc' 'xerces-c')
makedepends=('cmake' 'xsd')
install='flexisip.install'
source=("flexisip-$pkgver.tar.gz::https://github.com/BelledonneCommunications/flexisip/archive/$pkgver.tar.gz")
noextract=()
sha256sums=('fba32d04aeb0ba4d5078199e3d0a75fe7357cb3cadb571dc032918730f34015a')

build() {
    cd "$pkgname-$pkgver"
    cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DENABLE_REDIS=YES \
        -DENABLE_PROTOBUF=YES \
        -DENABLE_PRESENCE=YES \
        -DENABLE_CONFERENCE=YES .
  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
  for S in flexisip-{presence,proxy,conference}{@,}; do
      install -Dm0644 "scripts/$S.service" "$pkgdir/usr/lib/systemd/system/$S.service"
  done;
}