# Maintainer: David P. <megver83@parabola.nu>

pkgname=belle-sip
pkgver=4.4.9
pkgrel=1
pkgdesc='A modern library implementing SIP (RFC3261) transport, transaction and dialog layers'
arch=(x86_64 i686)
url='http://linphone.org/'
license=(GPL)
depends=(avahi bctoolbox)
makedepends=(cmake)
options=('!emptydirs')
source=("https://gitlab.linphone.org/BC/public/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('5b6272fee2683d64acfff3667fbaecdaee32ae3b26270d71307831c6859c7c9f')

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

  cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DENABLE_STATIC=NO \
        -DENABLE_MDNS=YES \
        -DENABLE_STRICT=YES \
        -DENABLE_TESTS=NO .
  make
}

package() {
  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
}
