1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
9 _commit=6d0c7f7b7f484b3cd2aaf2e2b3cc902c095b4946 # tags/0.4.14
12 pkgdesc="Session / policy manager implementation for PipeWire"
13 url="https://pipewire.pages.freedesktop.org/wireplumber/"
28 # python-sphinx_rtd_theme
31 checkdepends=(pipewire-audio)
32 source=("git+https://gitlab.freedesktop.org/pipewire/$pkgbase.git#commit=$_commit")
37 git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
51 arch-meson $pkgbase build "${meson_options[@]}"
52 meson compile -C build
56 meson test -C build --print-errorlogs
60 local p="$1" f d; shift
62 d="$srcdir/$p/${f#$pkgdir/}"
63 mkdir -p "$(dirname "$d")"
65 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
71 package_wireplumber() {
73 "libwireplumber=$pkgver-$pkgrel"
78 provides=(pipewire-session-manager)
79 conflicts=(pipewire-media-session)
80 install=wireplumber.install
82 meson install -C build --destdir "$pkgdir"
87 _pick libw usr/lib/libwireplumber-$_ver.so*
88 _pick libw usr/lib/girepository-1.0
89 _pick libw usr/lib/pkgconfig
90 _pick libw usr/include
91 _pick libw usr/share/gir-1.0
94 install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
95 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
98 package_libwireplumber() {
99 pkgdesc+=" - client library"
101 libg{lib,module,object,io}-2.0.so
104 provides=(libwireplumber-$_ver.so)
108 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
111 # vim:set sw=2 sts=-1 et: