# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=bzrtp
pkgver=5.0.26
pkgrel=1
pkgdesc='Open source implementation of ZRTP keys exchange protocol'
arch=(x86_64)
url='https://github.com/BelledonneCommunications/bzrtp'
license=(GPL2)
depends=(libxml2 bctoolbox sqlite)
makedepends=(bcunit cmake)
source=(https://github.com/BelledonneCommunications/bzrtp/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('3a391d64a5b4710875059e0122ea56fe029175e5ecffeb573039dc4b9fa52c3f')

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DENABLE_STATIC=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
