# Description: A set of good-quality plugins for gstreamer under the LGPL.
# URL: https://gstreamer.freedesktop.org/modules/gst-plugins-good.html
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: flac gst-plugins-base gtk3 lame libdv libshout libsoup libvpx mpg123 taglib wavpack xorg-libxcomposite xorg-libxcursor xorg-libxinerama
# Optional: qt5 icu krb5 v4l-utils dbus

name=gst-plugins-good
version=1.22.4
release=1
source=(https://gstreamer.freedesktop.org/src/$name/$name-$version.tar.xz)

build() {
  cd $name-$version

  meson build \
    --prefix=/usr \
    --libexecdir=/usr/lib \
    -D buildtype=plain \
    -D nls=disabled \
    -D package-name="GStreamer (CRUX Linux)" \
    -D package-origin="https://crux.nu/"

  ninja -C build -j ${JOBS:-1}
  DESTDIR=$PKG ninja -C build install
}
