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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
|
# Maintainer: Huang-Huang Bao <eh5@sokka.cn>
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgbase=pipewire-full-git
pkgname=(
pipewire-full-git
libpipewire-full-git
pipewire-full-docs-git
pipewire-full-audio-git
pipewire-full-alsa-git
pipewire-full-ffado-git
pipewire-full-jack-client-git
pipewire-full-jack-git
pipewire-full-pulse-git
pipewire-full-roc-git
gst-plugin-pipewire-full-git
pipewire-full-zeroconf-git
pipewire-full-v4l2-git
pipewire-full-x11-bell-git
pipewire-full-vulkan-git
pipewire-full-ffmpeg-git
)
pkgver=1.2.0.r126.gd4de97a4
_so_ver=0.3
_short_pkgver=${pkgver%%.r*}
pkgrel=1
pkgdesc="Low-latency audio/video router and processor"
url="https://pipewire.org"
arch=(x86_64)
license=(MIT)
makedepends=(
alsa-lib
avahi
bluez-libs
dbus
doxygen
git
glib2-devel
graphviz
gst-plugins-base
jack # jack2 or pipewire-jack
libcamera
libcanberra
libfdk-aac
libffado
libfreeaptx
liblc3
libldac
libmysofa
libpulse
libsndfile
libusb
libx11
libxfixes
lilv
meson
ncurses
opus
python
python-packaging
readline
roc-toolkit
rtkit
sbc
sdl2
systemd
valgrind
webrtc-audio-processing-1
abseil-cpp # header required by webrtc-audio-processing-1
vulkan-headers vulkan-icd-loader
ffmpeg
modemmanager
)
checkdepends=(
openal
)
source=(
"git+https://gitlab.freedesktop.org/pipewire/pipewire.git"
)
b2sums=(
'SKIP'
)
pkgver() {
cd pipewire
git describe --long --tags --abbrev=8 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd pipewire
}
build() {
# make AUR helper happy
rm -rf build || true
local meson_options=(
-D bluez5-codec-lc3plus=disabled
-D docs=enabled
-D man=enabled
-D jack-devel=true
-D libjack-path=/usr/lib
-D rlimits-install=false
-D session-managers=[]
-D udevrulesdir=/usr/lib/udev/rules.d
-D selinux=disabled
-D snap=disabled
-D vulkan=enabled
-D pw-cat-ffmpeg=enabled
-D ffmpeg=enabled
-D bluez5-backend-native-mm=enabled
)
arch-meson pipewire 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-full-git() {
license+=(LGPL-2.1-or-later) # libspa-alsa
provides=("pipewire=$_short_pkgver")
conflicts=(pipewire)
depends=(
gcc-libs
glibc
dconf
avahi
"libpipewire-full-git=$pkgver-$pkgrel"
libcamera-base.so
libcamera.so
libdbus-1.so
libglib-2.0.so
libncursesw.so
libpipewire-$_so_ver.so
libreadline.so
libsystemd.so
libudev.so
)
optdepends=(
'gst-plugin-pipewire-full-git: GStreamer plugin'
'pipewire-full-alsa-git: ALSA configuration'
'pipewire-full-audio-git: Audio support'
'pipewire-full-docs-git: Documentation'
'pipewire-full-ffado-git: FireWire support'
'pipewire-full-jack-client-git: PipeWire as JACK client'
'pipewire-full-jack-git: JACK replacement'
'pipewire-full-pulse-git: PulseAudio replacement'
'pipewire-full-roc-git: ROC streaming'
'pipewire-session-manager: Session manager'
'pipewire-full-v4l2-git: V4L2 interceptor'
'pipewire-full-x11-bell-git: X11 bell'
'pipewire-full-zeroconf-git: Zeroconf support'
'realtime-privileges: realtime privileges with rt module'
'rtkit: realtime privileges with rtkit module'
)
install=pipewire.install
meson install -C build --destdir "$pkgdir"
(
cd "$pkgdir"
# Replace copies with symlinks
for _f in pipewire-{aes67,avb,pulse}; do
cmp usr/bin/pipewire usr/bin/$_f
ln -sf pipewire usr/bin/$_f
done
_pick lib usr/include/{pipewire-$_so_ver,spa-0.2}
_pick lib usr/lib/libpipewire-$_so_ver.so*
_pick lib usr/lib/pkgconfig/lib{pipewire-$_so_ver,spa-0.2}.pc
# ACP
_pick audio usr/lib/udev
_pick audio usr/share/alsa-card-profile
_pick docs usr/share/doc
_pick audio usr/bin/pipewire-{aes67,avb}
_pick audio usr/bin/pw-{cat,{,enc}play,record,midi{play,record},dsdplay}
_pick audio usr/bin/pw-{loopback,mididump}
_pick audio usr/bin/spa-{acp-tool,resample}
_pick audio usr/lib/alsa-lib
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-avb.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-echo-cancel.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-fallback-sink.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-filter-chain*.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-loopback.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-netjack2*.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-pipe-tunnel.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-protocol-simple.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-rtp-{sap,sink,source}.so
_pick audio usr/lib/pipewire-$_so_ver/libpipewire-module-vban*.so
_pick audio usr/lib/spa-0.2/{aec,alsa,audio*,avb,bluez5}
_pick audio usr/lib/systemd/user/filter-chain.service
_pick audio usr/share/alsa
_pick audio usr/share/man/man1/pw-{cat,mididump}.1
_pick audio usr/share/man/man1/spa-{acp-tool,resample}.1
_pick audio usr/share/man/man5/pipewire-filter-chain.conf.5
_pick audio usr/share/man/man7/libpipewire-module-{avb,echo-cancel,fallback-sink,filter-chain*,loopback,netjack2*,pipe-tunnel,protocol-simple,rtp-{sap,sink,source},vban*}.7
_pick audio usr/share/pipewire/filter-chain*
_pick audio usr/share/pipewire/pipewire-{aes67,avb}.conf
_pick audio usr/share/spa-0.2/bluez5
_pick ffado usr/lib/pipewire-$_so_ver/libpipewire-module-ffado*.so
_pick ffado usr/share/man/man7/libpipewire-module-ffado-driver.7
_pick jack-client usr/lib/pipewire-$_so_ver/libpipewire-module-jack{-tunnel,dbus-detect}.so
_pick jack-client usr/lib/spa-0.2/jack
_pick jack-client usr/share/man/man7/libpipewire-module-jack{-tunnel,dbus-detect}.7
_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/man/man5/pipewire-jack.conf.5
_pick jack usr/share/pipewire/jack.conf
_pick pulse usr/bin/pipewire-pulse
_pick pulse usr/lib/pipewire-$_so_ver/libpipewire-module-protocol-pulse.so
_pick pulse usr/lib/pipewire-$_so_ver/libpipewire-module-pulse-tunnel.so
_pick pulse usr/lib/systemd/user/pipewire-pulse.*
_pick pulse usr/share/man/man1/pipewire-pulse.1
_pick pulse usr/share/man/man5/pipewire-pulse.conf.5
_pick pulse usr/share/man/man7/pipewire-pulse*.7
_pick pulse usr/share/man/man7/libpipewire-module-{protocol-pulse,pulse-tunnel}.7
_pick pulse usr/share/pipewire/pipewire-pulse.conf
_pick roc usr/lib/pipewire-$_so_ver/libpipewire-module-roc*.so
_pick gst usr/lib/gstreamer-1.0
_pick zeroconf usr/lib/pipewire-$_so_ver/libpipewire-module-{raop,zeroconf}-*.so
_pick zeroconf usr/lib/pipewire-$_so_ver/libpipewire-module-rtp-session.so
_pick zeroconf usr/share/man/man7/libpipewire-module-{raop-*,rtp-session,zeroconf*}.7
_pick v4l2 usr/bin/pw-v4l2 usr/lib/pipewire-$_so_ver/v4l2
_pick v4l2 usr/share/man/man1/pw-v4l2.1
_pick x11-bell usr/lib/pipewire-$_so_ver/libpipewire-module-x11-bell.so
_pick x11-bell usr/share/man/man7/libpipewire-module-x11-bell.7
_pick vulkan usr/lib/spa-0.2/vulkan
_pick ffmpeg usr/lib/spa-0.2/ffmpeg
# directories for overrides
mkdir -p etc/pipewire/{client-rt,client,minimal,pipewire}.conf.d
)
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_libpipewire-full-git() {
pkgdesc+=" - client library"
depends=(
glibc
gcc-libs
)
provides=(
"libpipewire=$_short_pkgver"
libpipewire-$_so_ver.so
)
conflicts=(libpipewire)
mv lib/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-docs-git() {
options=(!strip)
pkgdesc+=" - documentation"
provides=(pipewire-docs)
conflicts=(pipewire-docs)
mv docs/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-audio-git() {
pkgdesc+=" - Audio support"
provides=(pipewire-audio alsa-card-profiles)
conflicts=(pipewire-audio alsa-card-profiles)
depends=(
dbus
gcc-libs
glib2
glibc
libasound.so
libbluetooth.so
libfdk-aac.so
libfreeaptx.so
liblc3.so
libldacBT_enc.so
liblilv-0.so
libmysofa.so
libopus.so
libpipewire-$_so_ver.so
libsbc.so
libsndfile.so
libusb-1.0.so
libwebrtc-audio-processing-1.so
pipewire
systemd-libs
libpipewire-full-git
libavcodec.so libavformat.so libavutil.so
)
mv audio/* "$pkgdir"
mkdir -p "$pkgdir/etc/alsa/conf.d"
ln -st "$pkgdir/etc/alsa/conf.d" \
/usr/share/alsa/alsa.conf.d/50-pipewire.conf
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-alsa-git() {
pkgdesc+=" - ALSA configuration"
depends=(
pipewire-full-git
pipewire-full-audio-git
pipewire-session-manager
)
conflicts=(pulseaudio-alsa pipewire-alsa)
provides=(pulseaudio-alsa 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 pipewire/COPYING
}
package_pipewire-full-ffado-git() {
pkgdesc+=" - FireWire support"
depends=(
glibc
libffado.so
libpipewire-$_so_ver.so
pipewire-full-git
pipewire-full-audio-git
)
provides=(pipewire-ffado)
conflicts=(pipewire-ffado)
mv ffado/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-jack-client-git() {
pkgdesc+=" - PipeWire as JACK client"
depends=(
glibc
libdbus-1.so
libjack.so
libpipewire-$_so_ver.so
pipewire-full-git
pipewire-full-audio-git
)
provides=(pipewire-jack-client)
conflicts=(pipewire-jack-client)
mv jack-client/* "${pkgdir}"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-jack-git() {
pkgdesc+=" - JACK replacement"
license+=(LGPL-2.1-or-later GPL-2.0-only) # libjackserver
depends=(
glibc
libpipewire-$_so_ver.so
pipewire-full-git
pipewire-full-audio-git
pipewire-session-manager
sh
)
optdepends=('jack-example-tools: for official JACK example-clients and tools')
conflicts=(jack jack2 pipewire-jack)
provides=(jack libjack.so libjackserver.so libjacknet.so pipewire-jack)
mv jack/* "$pkgdir"
install -Dm644 /dev/null \
"$pkgdir/usr/share/pipewire/media-session.d/with-jack"
# directories for overrides
mkdir -p "$pkgdir/etc/pipewire/jack.conf.d"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-pulse-git() {
pkgdesc+=" - PulseAudio replacement"
depends=(
dbus
gcc-libs
glibc
libavahi-{client,common}.so
libglib-2.0.so
libpipewire-$_so_ver.so
libpulse.so
pipewire-full-git
pipewire-full-audio-git
pipewire-session-manager
systemd-libs
)
provides=(
pulse-native-provider
pipewire-pulse
)
conflicts=(
pulseaudio
pulseaudio-bluetooth
pipewire-pulse
)
install=pipewire-pulse.install
mv pulse/* "$pkgdir"
# directory for overrides
mkdir -p "$pkgdir/etc/pipewire/pipewire-pulse.conf.d"
install -Dm644 /dev/null \
"$pkgdir/usr/share/pipewire/media-session.d/with-pulseaudio"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-roc-git() {
pkgdesc+=" - ROC streaming support"
provides=(pipewire-roc)
conflicts=(pipewire-roc)
depends=(
glibc
libpipewire-$_so_ver.so
libroc.so
pipewire-full-git
pipewire-full-audio-git
roc-toolkit
)
mv roc/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_gst-plugin-pipewire-full-git() {
pkgdesc="Multimedia graph framework - pipewire plugin"
provides=(gst-plugin-pipewire)
conflicts=(gst-plugin-pipewire)
depends=(
glib2
glibc
gst-plugins-base-libs
gstreamer
libpipewire-$_so_ver.so
pipewire-full-git
pipewire-session-manager
)
mv gst/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-zeroconf-git() {
pkgdesc+=" - Zeroconf support"
provides=(pipewire-zeroconf)
conflicts=(pipewire-zeroconf)
depends=(
gcc-libs
glibc
libavahi-{client,common}.so
libpipewire-$_so_ver.so
openssl
opus
pipewire-full-git
pipewire-full-audio-git
)
mv zeroconf/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-v4l2-git() {
pkgdesc+=" - V4L2 interceptor"
provides=(pipewire-v4l2)
conflicts=(pipewire-v4l2)
depends=(
glibc
libpipewire-$_so_ver.so
pipewire-full-git
pipewire-session-manager
sh
)
mv v4l2/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-x11-bell-git() {
pkgdesc+=" - X11 bell"
depends=(
glibc
libcanberra.so
libpipewire-$_so_ver.so
libx11
libxfixes
pipewire-full-git
pipewire-full-audio-git
)
provides=(pipewire-x11-bell)
conflicts=(pipewire-x11-bell)
mv x11-bell/* "$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-vulkan-git() {
pkgdesc="Vulkan SPA plugin"
depends=(vulkan-icd-loader)
provides=(pipewire-vulkan)
conflicts=(pipewire-vulkan)
mv vulkan/* "${pkgdir}"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
package_pipewire-full-ffmpeg-git() {
pkgdesc="FFmpeg SPA plugin"
depends=(libavcodec.so)
provides=(pipewire-ffmpeg)
conflicts=(pipewire-ffmpeg)
mv ffmpeg/* "${pkgdir}"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 pipewire/COPYING
}
# vim:set sw=2 sts=-1 et:
|