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 - 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
"
