2020-06-07 14:58:18 +00:00
|
|
|
# Description: Server and user space API to deal with multimedia pipelines
|
|
|
|
# URL: https://pipewire.org
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-02-21 16:16:23 +00:00
|
|
|
# Depends on: alsa-utils dbus fdk-aac ffmpeg glib gnutls lame libva libvpx libwebp x264 x265
|
2021-02-21 13:10:29 +00:00
|
|
|
# Optional: alsa-ucm-conf bluez gst-plugins-base jack pulseaudio libldac libopenaptx v4l2 vulkan-loader
|
2020-06-07 14:58:18 +00:00
|
|
|
|
|
|
|
name=pipewire
|
2021-02-18 22:33:41 +00:00
|
|
|
version=0.3.22
|
2021-02-21 13:10:29 +00:00
|
|
|
release=2
|
2020-06-07 14:58:18 +00:00
|
|
|
source=(https://github.com/PipeWire/pipewire/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
[[ -e /usr/lib/pkgconfig/jack.pc ]] || PKGMK_PW+=' -Dpipewire-jack=false -Djack=false'
|
|
|
|
[[ -e /usr/lib/pkgconfig/vulkan.pc ]] || PKGMK_PW+=' -Dpipewire-vulkan=false -Dvulkan=false'
|
|
|
|
[[ -e /usr/lib/pkgconfig/bluez.pc ]] || PKGMK_PW+=' -Dbluez5=false'
|
|
|
|
[[ -e /usr/lib/pkgconfig/libv4l2.pc ]] || PKGMK_PW+=' -Dv4l2=false'
|
|
|
|
[[ -e /usr/include/pulse/glib-mainloop.h ]] || PKGMK_PW+=' -Dpipewire-pulseaudio=false'
|
|
|
|
[[ -e /usr/lib/pkgconfig/gstreamer-1.0.pc ]] || PKGMK_PW+=' -Dgstreamer=false'
|
|
|
|
|
2020-11-03 20:19:22 +00:00
|
|
|
meson setup $name-$version build $PKGMK_PW \
|
2020-06-07 14:58:18 +00:00
|
|
|
-D prefix=/usr \
|
2020-11-03 20:19:22 +00:00
|
|
|
--buildtype=plain \
|
2020-06-07 14:58:18 +00:00
|
|
|
-D docs=false \
|
2020-06-11 16:25:17 +00:00
|
|
|
-D tests=false
|
2021-01-07 22:36:43 +00:00
|
|
|
# will remove executable pipewire-media-session
|
|
|
|
# -D examples=false \
|
|
|
|
|
2020-11-03 20:19:22 +00:00
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2021-01-14 12:11:02 +00:00
|
|
|
|
|
|
|
# enable alsa by default
|
|
|
|
touch $PKG/etc/pipewire/media-session.d/with-alsa
|
2021-01-21 13:15:57 +00:00
|
|
|
mkdir -p $PKG/etc/alsa/conf.d
|
2021-01-14 12:11:02 +00:00
|
|
|
ln -st $PKG/etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf
|
2021-02-21 13:10:29 +00:00
|
|
|
ln -st $PKG/etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/50-pipewire.conf
|
2021-01-21 13:15:57 +00:00
|
|
|
|
|
|
|
# remove leftovers
|
|
|
|
rm -r $PKG/usr/share/locale
|
2020-06-07 14:58:18 +00:00
|
|
|
}
|