archrelease: copy trunk to staging-x86_64
[arch-packages.git] / wireplumber / trunk / PKGBUILD
blob53d3045cd056249f3eb7bb36aed263dd0deca726
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgbase=wireplumber
5 pkgname=(
6   wireplumber
7   libwireplumber
9 _commit=6d0c7f7b7f484b3cd2aaf2e2b3cc902c095b4946  # tags/0.4.14
10 pkgver=0.4.14
11 pkgrel=1
12 pkgdesc="Session / policy manager implementation for PipeWire"
13 url="https://pipewire.pages.freedesktop.org/wireplumber/"
14 arch=(x86_64)
15 license=(MIT)
16 makedepends=(
17   doxygen
18   git
19   glib2
20   gobject-introspection
21   graphviz
22   lua
23   meson
24   pipewire
25   python-lxml
26   systemd
28 checkdepends=(pipewire-audio)
29 source=("git+https://gitlab.freedesktop.org/pipewire/$pkgbase.git#commit=$_commit")
30 b2sums=('SKIP')
32 pkgver() {
33   cd $pkgbase
34   git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
37 prepare() {
38   cd $pkgbase
41 build() {
42   local meson_options=(
43     -D doc=disabled
44     -D elogind=disabled
45     -D system-lua=true
46   )
48   arch-meson $pkgbase build "${meson_options[@]}"
49   meson compile -C build
52 check() {
53   meson test -C build --print-errorlogs
56 _pick() {
57   local p="$1" f d; shift
58   for f; do
59     d="$srcdir/$p/${f#$pkgdir/}"
60     mkdir -p "$(dirname "$d")"
61     mv "$f" "$d"
62     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
63   done
66 _ver=${pkgver:0:3}
68 package_wireplumber() {
69   depends=(
70     "libwireplumber=$pkgver-$pkgrel"
71     libsystemd.so
72     lua
73     pipewire
74   )
75   provides=(pipewire-session-manager)
76   conflicts=(pipewire-media-session)
77   install=wireplumber.install
79   meson install -C build --destdir "$pkgdir"
81   (
82     cd "$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
89   )
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"
97   depends=(
98     libg{lib,module,object,io}-2.0.so
99     libpipewire-0.3.so
100   )
101   provides=(libwireplumber-$_ver.so)
103   mv libw/* "$pkgdir"
105   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
108 # vim:set sw=2 sts=-1 et: