# Contributor: A. Wilcox # Maintainer: A. Wilcox pkgname=gst-plugins-good pkgver=1.20.1 pkgrel=0 pkgdesc="GStreamer multimedia framework - Free, well-written plugins" url="https://gstreamer.freedesktop.org/modules/gst-plugins-good.html" arch="all" license="LGPL-2.1+" depends="" makedepends="gst-plugins-base-dev gstreamer-dev gobject-introspection-dev orc-dev libgudev-dev v4l-utils-dev libx11-dev cairo-dev flac-dev gdk-pixbuf-dev gtk+3.0-dev libjpeg-turbo-dev lame-dev libdv-dev libpng-dev mpg123-dev pulseaudio-dev libraw1394-dev libiec61883-dev libavc1394-dev libsoup-dev speex-dev taglib-dev wavpack-dev zlib-dev bzip2-dev libxdamage-dev libxext-dev libxfixes-dev meson orc-compiler wayland-protocols" subpackages="$pkgname-gtk $pkgname-lang" ldpath="/usr/lib/gstreamer-1.0" source="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.xz" build() { meson \ -Dprefix=/usr \ -Dnls=enabled \ -Dpackage-name="GStreamer Good Plugins (${DISTRO_NAME:-Adélie Linux})" \ -Dpackage-origin="${DISTRO_URL:-https://www.adelielinux.org/}" \ _build ninja -C _build } check() { ninja -C _build test } package() { DESTDIR="$pkgdir" ninja -C _build install } gtk() { pkgdesc="$pkgdesc (Gtk+ 3 integration)" install_if="$pkgname=$pkgver-r$pkgrel gtk+3.0" mkdir -p "$subpkgdir"/usr/lib/gstreamer-1.0 mv "$pkgdir"/usr/lib/gstreamer-1.0/libgstgdkpixbuf.so \ "$subpkgdir"/usr/lib/gstreamer-1.0/ mv "$pkgdir"/usr/lib/gstreamer-1.0/libgstgtk.so \ "$subpkgdir"/usr/lib/gstreamer-1.0/ } sha512sums="6e56f6290465da03bfe162228829e51091896b2c5fe9d1d0718f663a3ab14edf5c790b37998a783981b9c77034252e7dee9fec5136f92ced44c4898e2fbd402e gst-plugins-good-1.20.1.tar.xz"