# 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: dbus icu krb5 qt5 v4l-utils

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

build() {
  prt-get prt-get isinst qt5 && PKGMK_GST_GOOD+=' -D qt5=enabled'

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

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