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
15 _commit=e5d5cf2404786af8bcc40bdb8a2962bef4ec18b6 # tags/0.4.1
16 source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/media-session.git#commit=$_commit")
21 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
31 -D with-module-sets=[]
34 arch-meson $pkgbase build "${meson_options[@]}"
35 meson compile -C build
39 meson test -C build --print-errorlogs
43 local p="$1" f d; shift
45 d="$srcdir/$p/${f#$pkgdir/}"
46 mkdir -p "$(dirname "$d")"
48 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
52 package_pipewire-media-session() {
53 depends=('pipewire>=0.3.39' libpipewire-0.3.so libsystemd.so libdbus-1.so
55 optdepends=('pipewire-media-session-docs: Documentation')
56 provides=(pipewire-session-manager)
57 conflicts=(wireplumber)
58 install=pipewire-media-session.install
60 meson install -C build --destdir "$pkgdir"
62 _pick docs "$pkgdir"/usr/share/doc
64 install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
65 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
68 package_pipewire-media-session-docs() {
69 pkgdesc+=" - documentation"
73 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING