2020-06-10 18:52:51 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2020-08-15 03:30:50 +00:00
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
2018-03-25 15:52:40 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - remove makedepend on valgrind
|
|
|
|
|
2019-06-15 02:24:38 +00:00
|
|
|
pkgbase=pipewire
|
2020-12-03 02:27:41 +00:00
|
|
|
pkgname=(pipewire pipewire-docs pipewire-jack pipewire-pulse pipewire-alsa
|
|
|
|
gst-plugin-pipewire)
|
2021-01-05 14:55:55 +00:00
|
|
|
pkgver=0.3.19
|
2020-12-03 02:27:41 +00:00
|
|
|
pkgrel=1
|
2018-03-25 15:52:40 +00:00
|
|
|
pkgdesc="Server and user space API to deal with multimedia pipelines"
|
|
|
|
url="https://pipewire.org"
|
|
|
|
license=(LGPL2.1)
|
|
|
|
arch=(x86_64)
|
2020-03-08 15:51:55 +00:00
|
|
|
makedepends=(git meson doxygen graphviz xmltoman jack2 libpulse
|
2021-01-05 14:55:55 +00:00
|
|
|
alsa-lib gst-plugins-base sbc rtkit vulkan-icd-loader dbus sdl2
|
|
|
|
ncurses libsndfile bluez-libs vulkan-headers libldac libopenaptx
|
|
|
|
libfdk-aac)
|
|
|
|
_commit=b2b45abe0198354ff43e5bf1bc0324b060dde97a # tags/0.3.19
|
2020-09-11 23:55:36 +00:00
|
|
|
source=("git+https://github.com/PipeWire/pipewire#commit=$_commit")
|
|
|
|
sha256sums=('SKIP')
|
2018-03-25 15:52:40 +00:00
|
|
|
|
|
|
|
pkgver() {
|
2019-06-15 02:24:38 +00:00
|
|
|
cd $pkgbase
|
2018-03-25 15:52:40 +00:00
|
|
|
git describe --tags | sed 's/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2019-06-15 02:24:38 +00:00
|
|
|
cd $pkgbase
|
2018-03-25 15:52:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-06-15 02:24:38 +00:00
|
|
|
arch-meson $pkgbase build \
|
2018-09-02 05:00:46 +00:00
|
|
|
-D docs=true \
|
2020-08-15 03:30:50 +00:00
|
|
|
-D udevrulesdir=/usr/lib/udev/rules.d
|
2020-06-10 18:52:51 +00:00
|
|
|
meson compile -C build
|
2018-03-25 15:52:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-06-15 02:24:38 +00:00
|
|
|
meson test -C build --print-errorlogs
|
2018-03-25 15:52:40 +00:00
|
|
|
}
|
|
|
|
|
2020-02-21 01:47:54 +00:00
|
|
|
_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
|
|
|
|
}
|
|
|
|
|
2020-05-01 12:49:27 +00:00
|
|
|
_ver=${pkgver:0:3}
|
|
|
|
|
2019-06-15 02:24:38 +00:00
|
|
|
package_pipewire() {
|
2020-12-03 02:27:41 +00:00
|
|
|
depends=(sbc rtkit vulkan-icd-loader bluez-libs alsa-card-profiles
|
2021-01-05 14:55:55 +00:00
|
|
|
libdbus-1.so libncursesw.so libsndfile.so libudev.so libasound.so
|
|
|
|
libsystemd.so libldacBT_enc.so libopenaptx.so libfdk-aac.so)
|
2020-03-08 15:51:55 +00:00
|
|
|
optdepends=('pipewire-docs: Documentation'
|
|
|
|
'pipewire-jack: JACK support'
|
|
|
|
'pipewire-pulse: PulseAudio support')
|
2020-05-01 12:49:27 +00:00
|
|
|
provides=(libpipewire-$_ver.so)
|
2021-01-05 14:55:55 +00:00
|
|
|
backup=(etc/pipewire/pipewire.conf
|
|
|
|
etc/pipewire/media-session.d/{alsa-monitor,media-session}.conf)
|
2019-06-15 02:24:38 +00:00
|
|
|
install=pipewire.install
|
|
|
|
|
2018-07-18 20:53:42 +00:00
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
2019-06-15 02:24:38 +00:00
|
|
|
|
2020-02-21 01:47:54 +00:00
|
|
|
cd "$pkgdir"
|
|
|
|
|
2020-05-13 00:01:53 +00:00
|
|
|
mkdir -p etc/alsa/conf.d
|
|
|
|
ln -st etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/50-pipewire.conf
|
|
|
|
|
2020-02-21 01:47:54 +00:00
|
|
|
_pick docs usr/share/doc
|
2020-03-08 15:51:55 +00:00
|
|
|
|
2020-12-03 02:27:41 +00:00
|
|
|
_pick jack etc/pipewire/media-session.d/with-jack
|
2020-05-01 12:49:27 +00:00
|
|
|
_pick jack usr/bin/pw-jack usr/lib/pipewire-$_ver/jack
|
2020-03-08 15:51:55 +00:00
|
|
|
_pick jack usr/lib/spa-0.2/jack
|
2020-11-05 00:49:44 +00:00
|
|
|
_pick jack usr/share/man/man1/pw-jack.1
|
2020-10-05 18:52:56 +00:00
|
|
|
|
2020-12-03 02:27:41 +00:00
|
|
|
_pick pulse etc/pipewire/media-session.d/with-pulseaudio
|
|
|
|
|
|
|
|
_pick gst usr/lib/gstreamer-1.0
|
|
|
|
|
2020-10-05 18:52:56 +00:00
|
|
|
# Use alsa-card-profiles built with Pulseaudio
|
|
|
|
rm -rv "$pkgdir"/usr/share/alsa-card-profile
|
2019-06-15 02:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_pipewire-docs() {
|
|
|
|
pkgdesc+=" (documentation)"
|
2020-02-21 01:47:54 +00:00
|
|
|
mv docs/* "$pkgdir"
|
2018-03-25 15:52:40 +00:00
|
|
|
}
|
2020-03-08 15:51:55 +00:00
|
|
|
|
|
|
|
package_pipewire-jack() {
|
|
|
|
pkgdesc+=" (JACK support)"
|
2020-12-03 02:27:41 +00:00
|
|
|
depends=(pipewire libpipewire-$_ver.so libjack.so)
|
2020-03-08 15:51:55 +00:00
|
|
|
mv jack/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_pipewire-pulse() {
|
2020-12-03 02:27:41 +00:00
|
|
|
pkgdesc+=" (PulseAudio replacement)"
|
|
|
|
depends=(pipewire libpulse)
|
|
|
|
provides=(pulseaudio pulseaudio-bluetooth)
|
|
|
|
conflicts=(pulseaudio pulseaudio-bluetooth)
|
|
|
|
install=pipewire-pulse.install
|
2020-03-08 15:51:55 +00:00
|
|
|
mv pulse/* "$pkgdir"
|
|
|
|
}
|
2020-05-13 00:01:53 +00:00
|
|
|
|
|
|
|
package_pipewire-alsa() {
|
|
|
|
pkgdesc="ALSA Configuration for PipeWire"
|
2020-12-03 02:27:41 +00:00
|
|
|
depends=(pipewire libpipewire-$_ver.so)
|
|
|
|
provides=(pulseaudio-alsa)
|
2020-05-13 00:01:53 +00:00
|
|
|
|
2021-01-05 14:55:55 +00:00
|
|
|
mkdir -p "$pkgdir"/etc/{alsa/conf.d,pipewire/media-session.d}
|
2020-05-13 00:01:53 +00:00
|
|
|
ln -st "$pkgdir/etc/alsa/conf.d" /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf
|
2021-01-05 14:55:55 +00:00
|
|
|
touch "$pkgdir/etc/pipewire/media-session.d/with-alsa"
|
2020-05-13 00:01:53 +00:00
|
|
|
}
|
2020-12-03 02:27:41 +00:00
|
|
|
|
|
|
|
package_gst-plugin-pipewire() {
|
|
|
|
pkgdesc="Multimedia graph framework - pipewire plugin"
|
|
|
|
depends=(pipewire libpipewire-$_ver.so gst-plugins-base-libs)
|
|
|
|
mv gst/* "$pkgdir"
|
|
|
|
}
|