app=gst-plugins-good
version=1.16.2
build=1sml
homepage="https://gstreamer.freedesktop.org/"
download="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.16.2.tar.xz"
desc="Multimedia graph framework containing good 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

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
ab0dfd51af3ea345db466618547c35c78b5f08e725096b66074a5a7e0a83ca25ac51d2d915b7a8c07b70f8e4c9fc65d51c1851f147a5a5a71fbca58e1eb5ffd4  gst-plugins-good-1.16.2.tar.xz
"
