# Description: Library for ICE and STUN.
# URL: https://libnice.freedesktop.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gstreamer

name=libnice
version=0.1.21
release=2
source=(https://nice.freedesktop.org/releases/$name-$version.tar.gz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true

  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
