blob: 5fc66318bc19687422342a60c8cbcff59fcdb7fc (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
|
# Maintainer: Huang-Huang Bao <eh5@sokka.cn>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
_pkgbase=pipewire
pkgbase=pipewire-full-git
pkgname=(
pipewire-full-git
pipewire-full-docs-git
pipewire-full-alsa-git
pipewire-full-jack-git
pipewire-full-pulse-git
pipewire-full-v4l2-git
pipewire-full-x11-bell-git
pipewire-full-zeroconf-git
gst-plugin-pipewire-full-git
pipewire-full-jack-client-git
pipewire-full-vulkan-git
pipewire-full-ffmpeg-git
pipewire-full-roc-git
)
pkgver=0.3.66.r13.g0b69f37a
pkgrel=1
pkgdesc="Low-latency audio/video router and processor"
url="https://pipewire.org"
license=(MIT)
arch=(x86_64)
makedepends=(
git meson doxygen python-docutils graphviz ncurses
readline systemd libsndfile alsa-lib dbus rtkit libpulse
glib2 webrtc-audio-processing libusb bluez-libs
sbc libldac libfreeaptx libfdk-aac opus
lilv libx11 libxfixes libcanberra libcamera
liblc3
avahi openssl
gst-plugins-base-libs
jack2
vulkan-headers vulkan-icd-loader
ffmpeg
roc-toolkit
libmysofa
)
source=("git+https://gitlab.freedesktop.org/pipewire/${_pkgbase}.git")
sha256sums=('SKIP')
prepare() {
cd $_pkgbase
# remove export of LD_LIBRARY_PATH for pw-jack as it would add /usr/lib
sed -i '/LD_LIBRARY_PATH/d' pipewire-jack/src/pw-jack.in
}
pkgver() {
cd $_pkgbase
git describe --long --tags --abbrev=8 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
# make AUR helper happy
rm -rf build || true
local meson_options=(
-D bluez5-codec-lc3plus=disabled
-D docs=enabled
-D jack-devel=true
-D libjack-path=/usr/lib
-D sdl2=disabled
-D session-managers='[]'
-D test=enabled
-D bluez5-codec-lc3=enabled
-D vulkan=enabled
-D ffmpeg=enabled
-D udevrulesdir=/usr/lib/udev/rules.d
)
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
}
_ver=${pkgver:0:3}
_short_pkgver=${pkgver%%.r*}
package_pipewire-full-git() {
license+=(LGPL)
depends=(
rtkit libdbus-1.so libncursesw.so libreadline.so
libsndfile.so libudev.so libasound.so libsystemd.so
libwebrtc_audio_processing.so libusb-1.0.so
libbluetooth.so libsbc.so libldacBT_{enc,abr}.so
libfreeaptx.so libfdk-aac.so libopus.so
liblilv-0.so
libcamera-base.so libcamera.so
liblc3.so
libmysofa
)
optdepends=(
'pipewire-session-manager: Session manager'
'pipewire-full-docs-git: Documentation'
'pipewire-full-alsa-git: ALSA configuration'
'pipewire-full-jack-git: JACK support'
'pipewire-full-jack-client-git: JACK device/client'
'pipewire-full-pulse-git: PulseAudio replacement'
'pipewire-full-v4l2-git: V4L2 interceptor'
'pipewire-full-x11-bell-git: X11 bell'
'pipewire-full-zeroconf-git: Zeroconf support'
'pipewire-full-roc-git: ROC support'
'gst-plugin-pipewire-full-git: GStreamer support'
'ofono: ofono Bluetooth HFP support'
'hsphfpd: hsphfpd Bluetooth HSP/HFP support'
)
provides=(
"libpipewire=$_short_pkgver"
"pipewire=$_short_pkgver"
pipewire-audio alsa-card-profiles libpipewire-$_ver.so
pipewire-full-libcamera-git
)
conflicts=(
pipewire alsa-card-profiles
pipewire-full-libcamera-git
)
install=pipewire.install
meson install -C build --destdir "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
cd "$pkgdir"
mkdir -p etc/alsa/conf.d
ln -st etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/50-pipewire.conf
# directories for overrides
mkdir -p etc/pipewire/{client-rt,client,minimal,pipewire,pipewire-pulse}.conf.d
_pick docs usr/share/doc
_pick jack usr/bin/pw-jack
_pick jack usr/include/jack
_pick jack usr/lib/libjack*
_pick jack usr/lib/pkgconfig/jack.pc
_pick jack usr/share/man/man1/pw-jack.1
_pick jack usr/share/pipewire/jack.conf
_pick pulse usr/bin/pipewire-pulse
_pick pulse usr/lib/pipewire-$_ver/libpipewire-module-protocol-pulse.so
_pick pulse usr/lib/pipewire-$_ver/libpipewire-module-pulse-tunnel.so
_pick pulse usr/lib/systemd/user/pipewire-pulse.*
_pick v4l2 usr/bin/pw-v4l2 usr/lib/pipewire-$_ver/v4l2
_pick x11-bell usr/lib/pipewire-$_ver/libpipewire-module-x11-bell.so
_pick zeroconf usr/lib/pipewire-$_ver/libpipewire-module-{raop,zeroconf}-discover.so
_pick gst usr/lib/gstreamer-1.0
_pick jack-client usr/lib/spa-0.2/jack
_pick vulkan usr/lib/spa-0.2/vulkan
_pick ffmpeg usr/lib/spa-0.2/ffmpeg
_pick roc usr/lib/pipewire-$_ver/libpipewire-module-roc-{sink,source}.so
}
package_pipewire-full-docs-git() {
arch=(any)
options=(!strip)
provides=(pipewire-docs)
conflicts=(pipewire-docs)
pkgdesc+=" - documentation"
mv docs/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-alsa-git() {
pkgdesc+=" - ALSA configuration"
depends=(pipewire-session-manager pipewire-full-git)
provides=(pipewire-alsa pulseaudio-alsa)
conflicts=(pipewire-alsa)
mkdir -p "$pkgdir/etc/alsa/conf.d"
ln -st "$pkgdir/etc/alsa/conf.d" \
/usr/share/alsa/alsa.conf.d/99-pipewire-default.conf
install -Dm644 /dev/null "$pkgdir/usr/share/pipewire/media-session.d/with-alsa"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-jack-git() {
pkgdesc+=" - JACK support"
license+=(GPL2)
depends=(sh pipewire-session-manager pipewire-full-git
libpipewire-$_ver.so)
optdepends=('jack-example-tools: for official JACK example-clients and tools')
provides=(pipewire-jack jack libjack.so libjackserver.so libjacknet.so)
conflicts=(pipewire-jack jack jack2)
mv jack/* "$pkgdir"
install -Dm644 /dev/null \
"$pkgdir/usr/share/pipewire/media-session.d/with-jack"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-pulse-git() {
pkgdesc+=" - PulseAudio replacement"
depends=(pipewire-session-manager pipewire-full-git
libpipewire-$_ver.so libpulse.so libglib-2.0.so
libavahi-{client,common}.so
)
provides=(pipewire-pulse pulseaudio pulseaudio-bluetooth)
conflicts=(pipewire-pulse pulseaudio pulseaudio-bluetooth)
install=pipewire-pulse.install
mv pulse/* "$pkgdir"
install -Dm644 /dev/null \
"$pkgdir/usr/share/pipewire/media-session.d/with-pulseaudio"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-v4l2-git() {
pkgdesc+=" - V4L2 interceptor"
depends=(pipewire-session-manager pipewire-full-git
libpipewire-$_ver.so)
provides=(pipewire-v4l2)
conflicts=(pipewire-v4l2)
mv v4l2/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-x11-bell-git() {
pkgdesc+=" - X11 bell"
depends=(sh libx11 libxfixes pipewire-full-git
libpipewire-$_ver.so libcanberra.so)
provides=(pipewire-x11-bell)
conflicts=(pipewire-x11-bell)
mv x11-bell/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-zeroconf-git() {
pkgdesc+=" - Zeroconf support"
depends=(pipewire-full-git libpipewire-$_ver.so
libavahi-{client,common}.so openssl)
provides=(pipewire-zeroconf)
conflicts=(pipewire-zeroconf)
mv zeroconf/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_gst-plugin-pipewire-full-git() {
pkgdesc="Multimedia graph framework - pipewire plugin"
depends=(gst-plugins-base-libs pipewire-session-manager
pipewire-full-git libpipewire-$_ver.so)
provides=(gst-plugin-pipewire)
conflicts=(gst-plugin-pipewire)
mv gst/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-jack-client-git() {
pkgdesc="JACK client SPA plugin"
depends=(pipewire-full-git libjack.so)
provides=(pipewire-jack-client)
conflicts=(pipewire-jack-client)
mv jack-client/* "${pkgdir}"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-vulkan-git() {
pkgdesc="Vulkan SPA plugin"
depends=(pipewire-full-git vulkan-icd-loader)
provides=(pipewire-vulkan)
conflicts=(pipewire-vulkan)
mv vulkan/* "${pkgdir}"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-ffmpeg-git() {
pkgdesc="FFmpeg SPA plugin"
depends=(pipewire-full-git libavcodec.so libavformat.so)
provides=(pipewire-ffmpeg)
conflicts=(pipewire-ffmpeg)
mv ffmpeg/* "${pkgdir}"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
package_pipewire-full-roc-git() {
pkgdesc+=" - ROC support"
depends=(pipewire-full-git libroc.so)
provides=(pipewire-roc)
conflicts=(pipewire-roc)
mv roc/* "${pkgdir}"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgbase/COPYING
}
|