[arch-commits] Commit in gst-plugins-good/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Mar 13 23:57:13 UTC 2020
Date: Friday, March 13, 2020 @ 23:57:12
Author: heftig
Revision: 377517
1.16.2-3: split gtk and qmlgl
Modified:
gst-plugins-good/trunk/PKGBUILD
----------+
PKGBUILD | 44 +++++++++++++++++++++++++++++++++++---------
1 file changed, 35 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-13 23:34:58 UTC (rev 377516)
+++ PKGBUILD 2020-03-13 23:57:12 UTC (rev 377517)
@@ -1,9 +1,10 @@
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
# Maintainer: Jan de Groot <jgc at archlinux.org>
-pkgname=gst-plugins-good
+pkgbase=gst-plugins-good
+pkgname=(gst-plugins-good gst-plugin-gtk gst-plugin-qmlgl)
pkgver=1.16.2
-pkgrel=2
+pkgrel=3
pkgdesc="GStreamer open-source multimedia framework good plugins"
url="https://gstreamer.freedesktop.org/"
arch=(x86_64)
@@ -10,9 +11,10 @@
license=(LGPL)
depends=(libpulse libsoup gst-plugins-base-libs wavpack aalib taglib libdv libshout libvpx
gdk-pixbuf2 libcaca libavc1394 libiec61883 libxdamage v4l-utils cairo libgudev speex flac
- libraw1394 lame mpg123 twolame gtk3 qt5-declarative qt5-x11extras qt5-wayland)
-makedepends=(python gtk-doc git meson jack2)
-checkdepends=(gst-plugins-base)
+ libraw1394 lame mpg123 twolame)
+makedepends=(python gtk-doc git meson jack2 gtk3 qt5-{declarative,x11extras,wayland})
+checkdepends=(gst-plugins-base xorg-server-xvfb)
+options=(!emptydirs)
_commit=ce0723527aa37d5f4d19ef8021c0b2eb8f83b08d # tags/1.16.2^0
source=("git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-good.git#commit=$_commit")
sha256sums=('SKIP')
@@ -36,12 +38,36 @@
ninja -C build
}
-check() {
- meson test -C build --print-errorlogs
-}
+check() (
+ mkdir -p -m 700 "${XDG_RUNTIME_DIR:=$PWD/runtime-dir}"
+ export XDG_RUNTIME_DIR
-package() {
+ xvfb-run -s '-screen 0 1920x1080x24 -nolisten local +iglx -noreset' \
+ meson test -C build --print-errorlogs
+)
+
+package_gst-plugins-good() {
depends+=(libjack.so)
DESTDIR="$pkgdir" meson install -C build
+
+ for _x in gtk qmlgl; do
+ mkdir -p "$_x/lib/gstreamer-1.0"
+ _f="lib/gstreamer-1.0/libgst${_x}.so"
+ mv "$pkgdir/usr/$_f" "$_x/$_f"
+ done
}
+
+package_gst-plugin-gtk() {
+ pkgdesc="GStreamer open-source multimedia framework gtk plugin"
+ depends=(gst-plugins-base-libs gtk3)
+
+ mv gtk "$pkgdir/usr"
+}
+
+package_gst-plugin-qmlgl() {
+ pkgdesc="GStreamer open-source multimedia framework qmlgl plugin"
+ depends=(gst-plugins-base-libs qt5-{declarative,x11extras,wayland})
+
+ mv qmlgl "$pkgdir/usr"
+}
More information about the arch-commits
mailing list