# Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>

pkgname=bctoolbox
pkgver=0.6.0
pkgrel=4
pkgdesc="A library written in C that allows you to create and run audio and video streams"
arch=('x86_64')
url="https://github.com/BelledonneCommunications/bctoolbox"
license=('GPL')
depends=('mbedtls')
makedepends=('bcunit')
source=("$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/bctoolbox/archive/$pkgver.tar.gz")
sha256sums=('299dedcf8f1edea79964314504f0d24e97cdf24a289896fc09bc69c38eb9f9be')

build() {
  cd ${pkgname}-$pkgver
  [ -x ./configure ] || ./autogen.sh
  ./configure --prefix=/usr
  make
}

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