blob: d63ef5724b35bc229bda49eaf9ba1d18a56e4371 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (Arch): David Runge <dvzrv@archlinux.org>
# Maintainer (Arch): Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgbase=wireplumber
pkgname=(wireplumber wireplumber-docs)
_commit=3400acd0db95fefdda7595d20466c095902d8997 # tags/0.4.10
pkgver=0.4.10
pkgrel=3
pkgrel+=.nonsystemd1
pkgdesc="Session / policy manager implementation for PipeWire"
url="https://pipewire.pages.freedesktop.org/wireplumber/"
arch=(x86_64)
arch+=(i686 armv7h)
license=(MIT)
makedepends=(git meson doxygen graphviz 'pipewire>=0.3.43' glib2 lua
gobject-introspection python-sphinx python-sphinx_rtd_theme
python-breathe python-lxml elogind)
depends=(libelogind)
options=(debug)
source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/wireplumber.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgbase
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
local meson_options=(
-D system-lua=true
-D systemd=disabled
)
arch-meson $pkgbase build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_wireplumber() {
depends=('pipewire>=0.3.43' lua libpipewire-0.3.so
libg{lib,module,object,io}-2.0.so)
optdepends=('wireplumber-docs: Documentation')
provides=(pipewire-session-manager libwireplumber-0.4.so)
conflicts=(pipewire-media-session)
meson install -C build --destdir "$pkgdir"
_pick docs "$pkgdir"/usr/share/doc
install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
}
package_wireplumber-docs() {
pkgdesc+=" - documentation"
mv docs/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
}
# vim:set sw=2 et:
|