# Description: Secure Realtime transport protocol library
# URL: https://github.com/cisco/libsrtp
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: nss

name=libsrtp
version=2.5.0
release=1
source=(https://github.com/cisco/libsrtp/archive/v$version/$name-$version.tar.gz)

build() {
  meson setup $name-$version build $PKGMK_SRTP \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    --auto-features disabled \
    -D b_pie=true \
    -D crypto-library=nss \
    -D crypto-library-kdf=disabled \
    -D doc=disabled
  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
