1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgbase=gst-plugins-base
5 pkgname=(gst-plugins-base-libs gst-plugins-base)
8 pkgdesc="Multimedia graph framework - base plugins"
9 url="https://gstreamer.freedesktop.org/"
12 depends=(gstreamer orc libxv iso-codes libgudev mesa)
13 makedepends=(alsa-lib cdparanoia libvisual libvorbis libtheora pango opus
14 graphene libpng libjpeg gobject-introspection git meson
15 gtk3 qt5-{base,tools,x11extras} clutter sdl2 glu)
16 checkdepends=(xorg-server-xvfb)
18 _commit=57fb883b3f8c6d7a397afc0dfc4a7c2e5af05579 # tags/1.18.5^0
19 source=("git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-base.git#commit=$_commit")
24 git describe --tags | sed 's/-/+/g'
32 arch-meson $pkgbase build \
35 -D gobject-cast-checks=disabled \
36 -D package-name="GStreamer Base Plugins (Arch Linux)" \
37 -D package-origin="https://www.archlinux.org/"
38 meson compile -C build
42 mkdir -p -m 700 "${XDG_RUNTIME_DIR:=$PWD/runtime-dir}"
43 export XDG_RUNTIME_DIR
45 xvfb-run -s '-nolisten local' \
46 meson test -C build --print-errorlogs
49 package_gst-plugins-base-libs() {
50 pkgdesc="${pkgdesc% plugins}"
52 meson install -C build --destdir "$pkgdir"
54 mkdir -p ext/lib/gstreamer-1.0
55 for _x in alsa cdparanoia libvisual ogg opengl opus pango theora vorbis; do
56 _x="lib/gstreamer-1.0/libgst${_x}.so"
57 mv "$pkgdir/usr/$_x" "ext/$_x"
61 package_gst-plugins-base() {
62 depends=("gst-plugins-base-libs=$pkgver"
63 alsa-lib cdparanoia libvisual libvorbis libtheora pango opus graphene libpng libjpeg)