summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a8578fbd3fb8cd634034d1018c91753493e676bb (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=flexisip
pkgver=2.0.0
pkgrel=1
pkgdesc="A general purpose SIP proxy with media capabilities"
arch=('x86_64')
url="http://flexisip.org"
license=('AGPL3')
groups=()
depends=('belle-sip>=4.3' 'belr' 'hiredis' '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-beta.tar.gz")
noextract=()
sha256sums=('679ce09120143a4dc363a38e9e41bd469a8ac589867b7d233d9fb0b036107092')

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

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

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