# Maintainer: Natanael Copa pkgname=gst-plugins-bad pkgver=1.16.1 pkgrel=2 pkgdesc="GStreamer streaming media framework bad plug-ins" url="https://gstreamer.freedesktop.org" arch="all" license="GPL-2.0-or-later LGPL-2.0-or-later" options="!check" # 3 out of 51 tests fail as of 1.16.0 replaces="gst-plugins-bad1" makedepends="alsa-lib-dev bluez-dev bzip2-dev curl-dev directfb-dev faac-dev faad2-dev flite-dev glib-dev glu-dev gsm-dev gst-plugins-base-dev gstreamer-dev libass-dev libdc1394-dev libexif-dev libmms-dev libmodplug-dev libsrtp-dev libvdpau-dev libwebp-dev libx11-dev mesa-dev meson neon-dev openssl-dev opus-dev orc-compiler orc-dev spandsp-dev tiff-dev x265-dev vulkan-loader-dev vulkan-headers wayland-dev wayland-protocols" case "$CARCH" in s390x) ;; *) makedepends="$makedepends librsvg-dev" ;; esac subpackages="$pkgname-lang $pkgname-dev" source="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-$pkgver.tar.xz" ldpath="/usr/lib/gstreamer-1.0" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ -Dpackage-origin="https://alpinelinux.org" \ -Dpackage-name="GStreamer bad plug-ins (Alpine Linux)" \ -Dvulkan=enabled \ . output ninja -C output } check() { # XDG_RUNTIME_DIR is just a temporary directory for a user, created # by pam_systemd (or in Alpine's case elogind's pam_elogind) mounted at # run/user/$(id -u), since we don't run elogind on the builders we can # just point it at /tmp XDG_RUNTIME_DIR=/tmp meson test -C output --print-errorlogs } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums="e036eabf90d9d5f683709eceedc45ea8af322265869c58e49ed5b65496f2ca9e6276e911936dad2b1544715de6898c51e8ad6250238a872fb8daf58b4cec274d gst-plugins-bad-1.16.1.tar.xz"