1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgbase=pipewire-media-session
4 pkgname=(pipewire-media-session pipewire-media-session-docs)
8 pkgdesc="Example session manager for PipeWire"
9 url="https://gitlab.freedesktop.org/pipewire/media-session"
12 makedepends=(git meson doxygen graphviz 'pipewire>=0.3.39' systemd dbus
14 _commit=e5d5cf2404786af8bcc40bdb8a2962bef4ec18b6 # tags/0.4.1
15 source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/media-session.git#commit=$_commit")
20 git describe --tags | sed 's/-/+/g'
30 -D with-module-sets=[]
33 arch-meson $pkgbase build "${meson_options[@]}"
34 meson compile -C build
38 meson test -C build --print-errorlogs
42 local p="$1" f d; shift
44 d="$srcdir/$p/${f#$pkgdir/}"
45 mkdir -p "$(dirname "$d")"
47 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
51 package_pipewire-media-session() {
52 depends=('pipewire>=0.3.39' libpipewire-0.3.so libsystemd.so libdbus-1.so
54 optdepends=('pipewire-media-session-docs: Documentation')
55 provides=(pipewire-session-manager)
56 conflicts=(wireplumber)
57 install=pipewire-media-session.install
59 meson install -C build --destdir "$pkgdir"
61 _pick docs "$pkgdir"/usr/share/doc
63 install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
64 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
67 package_pipewire-media-session-docs() {
68 pkgdesc+=" - documentation"
72 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING