# Maintainer: Jan Alexander Steffens (heftig) # Maintainer: Jan de Groot # ALARM: Kevin Mihelich # - remove makedepend on valgrind pkgbase=pipewire pkgname=(pipewire pipewire-docs) pkgver=0.2.7 pkgrel=2 pkgdesc="Server and user space API to deal with multimedia pipelines" url="https://pipewire.org" license=(LGPL2.1) arch=(x86_64) makedepends=(git meson doxygen graphviz xmltoman alsa-lib gstreamer gst-plugins-base sbc rtkit dbus) _commit=14c11c0fe4d366bad4cfecdee97b6652ff9ed63d # tags/0.2.7 source=("git+https://github.com/PipeWire/pipewire#commit=$_commit") sha256sums=('SKIP') pkgver() { cd $pkgbase git describe --tags | sed 's/-/+/g' } prepare() { cd $pkgbase } build() { arch-meson $pkgbase build \ -D docs=true \ -D ffmpeg=false \ -D man=true ninja -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() { depends=(gstreamer gst-plugins-base sbc rtkit libdbus-1.so) provides=(libpipewire-0.2.so) backup=(etc/pipewire/pipewire.conf) install=pipewire.install DESTDIR="$pkgdir" meson install -C build cd "$pkgdir" _pick docs usr/share/doc } package_pipewire-docs() { pkgdesc+=" (documentation)" mv docs/* "$pkgdir" }