1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Chris Kitching <chriskitching@linux.com>
4 _basename=gst-plugins-base
5 pkgbase=lib32-$_basename
6 pkgname=(lib32-gst-plugins-base-libs lib32-gst-plugins-base)
9 pkgdesc="GStreamer Multimedia Framework Base Plugins (32-bit)"
10 url="https://gstreamer.freedesktop.org/"
13 makedepends=(lib32-gstreamer lib32-orc lib32-libxv lib32-alsa-lib lib32-cdparanoia lib32-libvisual lib32-libvorbis
14 lib32-libtheora lib32-pango lib32-opus lib32-sdl2 meson git)
15 checkdepends=(xorg-server-xvfb)
17 _commit=ce69d1068af058425b083aaa1b8c268b1b2e5ddd
18 source=("git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-base.git#commit=$_commit")
23 git describe --tags | sed 's/-/+/g'
29 export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
31 arch-meson $_basename build \
34 -D introspection=disabled \
37 -D examples=disabled \
38 -D gl-graphene=disabled \
39 -D gobject-cast-checks=disabled \
40 -D package-name="GStreamer Base Plugins (Arch Linux)" \
41 -D package-origin="https://www.archlinux.org/"
42 meson compile -C build
46 mkdir -p -m 700 "${XDG_RUNTIME_DIR:=$PWD/runtime-dir}"
47 export XDG_RUNTIME_DIR
49 xvfb-run -s '-screen 0 1920x1080x24 -nolisten local +iglx -noreset' \
50 meson test -C build --print-errorlogs
53 package_lib32-gst-plugins-base-libs() {
54 pkgdesc="GStreamer Multimedia Framework Base Plugin libraries (32-bit)"
55 depends=(lib32-gstreamer lib32-orc lib32-libxv)
57 DESTDIR="$pkgdir" meson install -C build
59 mkdir -p ext/lib32/gstreamer-1.0
60 for _x in alsa cdparanoia libvisual ogg opengl opus pango theora vorbis; do
61 _x="lib32/gstreamer-1.0/libgst${_x}.so"
62 mv "$pkgdir/usr/$_x" "ext/$_x"
65 rm -Rf "${pkgdir}"/usr/share
66 rm -Rf "${pkgdir}"/usr/include
67 rm -Rf "${pkgdir}"/usr/bin
70 package_lib32-gst-plugins-base() {
71 depends=("lib32-gst-plugins-base-libs=$pkgver" lib32-alsa-lib lib32-cdparanoia lib32-libvisual lib32-libvorbis
72 lib32-libtheora lib32-pango lib32-opus)