# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=gst-plugins-base
pkgver=1.20.1
pkgrel=0
pkgdesc="GStreamer multimedia framework - Base plugins"
url="https://gstreamer.freedesktop.org/"
arch="all"
options="!check"  # fails overlaycomposition on ppc64
license="GPL LGPL"
depends=""
makedepends="alsa-lib-dev cdparanoia-dev expat-dev glib-dev iso-codes-dev
	gobject-introspection-dev graphene-dev gstreamer-dev libdrm-dev
	libjpeg-turbo-dev libogg-dev libpng-dev libtheora-dev libvorbis-dev
	libx11-dev libxt-dev libxv-dev mesa-dev meson opus-dev orc-compiler
	orc-dev pango-dev !gst-plugins-base"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$pkgver.tar.xz"
ldpath="/usr/lib/gstreamer-1.0"

build() {
	meson \
		-Dprefix=/usr \
		-Dintrospection=enabled \
		-Dnls=enabled \
		-Dpackage-name="GStreamer Base 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
}

sha512sums="679a0eee1973fa9612e2e24978e2c2d9d8fdc5732e1699b4a87712881f1549d0811719a13ff4fe77b91322ca4425c39623b371703f6b3a36fb7238b977d3e541  gst-plugins-base-1.20.1.tar.xz"