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 checkdepends=(pipewire-audio)
29 source=("git+https://gitlab.freedesktop.org/pipewire/$pkgbase.git#commit=$_commit")
34 git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
48 arch-meson $pkgbase build "${meson_options[@]}"
49 meson compile -C build
53 meson test -C build --print-errorlogs
57 local p="$1" f d; shift
59 d="$srcdir/$p/${f#$pkgdir/}"
60 mkdir -p "$(dirname "$d")"
62 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
68 package_wireplumber() {
70 "libwireplumber=$pkgver-$pkgrel"
75 provides=(pipewire-session-manager)
76 conflicts=(pipewire-media-session)
77 install=wireplumber.install
79 meson install -C build --destdir "$pkgdir"
84 _pick libw usr/lib/libwireplumber-$_ver.so*
85 _pick libw usr/lib/girepository-1.0
86 _pick libw usr/lib/pkgconfig
87 _pick libw usr/include
88 _pick libw usr/share/gir-1.0
91 install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
92 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
95 package_libwireplumber() {
96 pkgdesc+=" - client library"
98 libg{lib,module,object,io}-2.0.so
101 provides=(libwireplumber-$_ver.so)
105 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
108 # vim:set sw=2 sts=-1 et: