# Maintainer: PktSurf <smlinux@pktsurf.in>
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-$version.tar.xz"
desc="Multimedia graph framework containing good plugins"
requires="alsa-lib libpng libjpeg-turbo libtheora opus glu pango gtk3 gst-plugins-base"

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

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

build() {
  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Dbuildtype=plain

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
70621b774e399405430ecba79734397161e5196f255f6d4a4abb3bdfc2e2aef9376e43d0fdc35316ee306ebb59e46c727d084a3a0f2bc0ad2e26a721463e46d5  gst-plugins-good-1.16.2.tar.lz
"
