app=gst-plugins-bad
version=1.16.2
build=1sml
homepage="https://gstreamer.freedesktop.org/"
download="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.16.2.tar.xz"
desc="Multimedia graph framework containing restricted plugins"
requires="alsa-lib libpng libjpeg-turbo libtheora opus glu pango gtk3 gst-plugins-base "

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    --sysconfdir=/etc \
    --localstatedir=/var \
    -Dbuildtype=plain \
    -Dintrospection=disabled

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
aeaf3388156fe7317e193a3f940d391a6d8a1187f93e6925cee4cb02c4e78d9b456c22c27c318f0f9b2212ca68887c5cdcc256adaf068bfab8ec5c091a1e8805  gst-plugins-bad-1.16.2.tar.xz
"
