# Note: depends on meson
# Note: depends on ninja
# Note: depends on pkg-config
# Note: depends on glib
# Note: depends on dbus
# Note: depends on gstreamer
# Note: depends on gst-plugins-base
# Note: depends on alsa-lib
# Note: depends on v4l-utils
# Note: depends on systemd
wget -c https://github.com/PipeWire/pipewire/archive/0.1.9/pipewire-0.1.9.tar.gz
tar -xzf pipewire-0.1.9.tar.gz
cd pipewire-0.1.9
sed -i -e '/FORMAT_GRAY/d' spa/plugins/v4l2/v4l2-utils.c # Skip formats which may not be supported
mkdir -p build
cd build
meson --prefix="/usr" ..
ninja
ninja install # as root