1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
5 pkgname=(wireplumber wireplumber-docs)
8 pkgdesc="Session / policy manager implementation for PipeWire"
10 url="https://pipewire.pages.freedesktop.org/wireplumber/"
12 makedepends=(git meson doxygen graphviz 'pipewire>=0.3.43' systemd glib2 lua
13 gobject-introspection python-sphinx python-sphinx_rtd_theme
14 python-breathe python-lxml)
16 _commit=e14bb72dcc85e2130d0ea96768e5ae3b375a041e # tags/0.4.8
17 source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/wireplumber.git#commit=$_commit")
22 git describe --tags | sed 's/-/+/g'
28 # si-audio-adapter: relax format parsing
29 git cherry-pick -n 'afbc0ce57aac7aee8dc1651de4620f15c73dbace'
38 arch-meson $pkgbase build "${meson_options[@]}"
39 meson compile -C build
43 meson test -C build --print-errorlogs
47 local p="$1" f d; shift
49 d="$srcdir/$p/${f#$pkgdir/}"
50 mkdir -p "$(dirname "$d")"
52 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
56 package_wireplumber() {
57 depends=('pipewire>=0.3.43' lua libpipewire-0.3.so libsystemd.so
58 libg{lib,module,object,io}-2.0.so)
59 optdepends=('wireplumber-docs: Documentation')
60 provides=(pipewire-session-manager libwireplumber-0.4.so)
61 conflicts=(pipewire-media-session)
62 install=wireplumber.install
64 meson install -C build --destdir "$pkgdir"
66 _pick docs "$pkgdir"/usr/share/doc
68 install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
69 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
72 package_wireplumber-docs() {
73 pkgdesc+=" - documentation"
77 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE