# Maintainer: PktSurf <smlinux@pktsurf.in>
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-$version.tar.xz"
desc="Multimedia graph framework containing restricted 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 \
    -Dintrospection=disabled

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
9d3f0399c976d29a7ec07fd6a709db5d05aa05e562183db7aa9c6704880ecfecf0aa396e3ab0b5f0f0643cd1154d6c05c414694ee9dba811519f45a5f2baf0af  gst-plugins-bad-1.16.2.tar.lz
"
