APP=gstreamer
VERSION=1.16.2
BUILD=1sml
HOMEPAGE='https://gstreamer.freedesktop.org/'
DOWNLOAD='https://gstreamer.freedesktop.org/data/src/gstreamer/gstreamer-1.16.2.tar.xz'
DESC="streaming multimedia framework"
REQUIRES="glib pcre libffi zlib"

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 \
    --buildtype=plain \
    -Dintrospection=disabled \
    -Dbash-completion=disabled 

  ninja
  DESTDIR="$PKG" ninja install
  cd ..

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
34ad259bfe20f38a5c499dece285c24231c4585d6165603ec4aaa6ba3062b5560a69abcf1bc6864691982fc99c431af88c7f96fcff6db35b50b4e1463809d900  gstreamer-1.16.2.tar.lz
"
