blob: 0786f6c1cc498d3b380a1188dc1df1239b3ec0f2 (
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
77
78
79
|
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (Arch): Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgbase=pipewire-media-session
pkgname=(pipewire-media-session pipewire-media-session-docs)
pkgver=0.4.1
pkgrel=2
pkgrel+=.nonsystemd1
epoch=1
pkgdesc="Example session manager for PipeWire"
url="https://gitlab.freedesktop.org/pipewire/media-session"
license=(MIT)
arch=(x86_64)
arch+=(i686 armv7h)
makedepends=(git meson doxygen graphviz 'pipewire>=0.3.39' dbus
alsa-lib)
options=(debug)
_commit=e5d5cf2404786af8bcc40bdb8a2962bef4ec18b6 # tags/0.4.1
source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/media-session.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgbase
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgbase
}
build() {
local meson_options=(
-D docs=enabled
-D systemd=disabled
-D with-module-sets=[]
)
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_pipewire-media-session() {
depends=('pipewire>=0.3.39' libpipewire-0.3.so libdbus-1.so
libasound.so)
optdepends=('pipewire-media-session-docs: Documentation')
provides=(pipewire-session-manager)
conflicts=(wireplumber)
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/COPYING
}
package_pipewire-media-session-docs() {
pkgdesc+=" - documentation"
mv docs/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
}
# vim:set sw=2 et:
|