summaryrefslogtreecommitdiff
path: root/nonsystemd
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2022-05-14 21:11:27 -0400
committerDavid P <megver83@parabola.nu>2022-05-14 21:11:27 -0400
commitcf8254528920035df1d85b25287d2b10edee7e7f (patch)
tree2a9c8d44dcfaaabe245ef548dc99c18c0b39a3dd /nonsystemd
parentd3f5bcf528c0cc9cbf78c3fac4247ffd0a33d6d0 (diff)
downloadabslibre-cf8254528920035df1d85b25287d2b10edee7e7f.tar.gz
abslibre-cf8254528920035df1d85b25287d2b10edee7e7f.tar.bz2
abslibre-cf8254528920035df1d85b25287d2b10edee7e7f.zip
addpkg: nonsystemd/pipewire-media-session 1:0.4.1-2.nonsystemd1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd')
-rw-r--r--nonsystemd/pipewire-media-session/PKGBUILD79
1 files changed, 79 insertions, 0 deletions
diff --git a/nonsystemd/pipewire-media-session/PKGBUILD b/nonsystemd/pipewire-media-session/PKGBUILD
new file mode 100644
index 000000000..0786f6c1c
--- /dev/null
+++ b/nonsystemd/pipewire-media-session/PKGBUILD
@@ -0,0 +1,79 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Maintainer (Arch): Jan Alexander Steffens (heftig) <heftig@archlinux.org>
+
+pkgbase=pipewire-media-session
+pkgname=(pipewire-media-session pipewire-media-session-docs)
+pkgver=0.4.1
+pkgrel=2
+pkgrel+=.nonsystemd1
+epoch=1
+pkgdesc="Example session manager for PipeWire"
+url="https://gitlab.freedesktop.org/pipewire/media-session"
+license=(MIT)
+arch=(x86_64)
+arch+=(i686 armv7h)
+makedepends=(git meson doxygen graphviz 'pipewire>=0.3.39' dbus
+ alsa-lib)
+options=(debug)
+_commit=e5d5cf2404786af8bcc40bdb8a2962bef4ec18b6 # tags/0.4.1
+source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/media-session.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+ cd $pkgbase
+}
+
+build() {
+ local meson_options=(
+ -D docs=enabled
+ -D systemd=disabled
+ -D with-module-sets=[]
+ )
+
+ arch-meson $pkgbase 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-media-session() {
+ depends=('pipewire>=0.3.39' libpipewire-0.3.so libdbus-1.so
+ libasound.so)
+ optdepends=('pipewire-media-session-docs: Documentation')
+ provides=(pipewire-session-manager)
+ conflicts=(wireplumber)
+
+ meson install -C build --destdir "$pkgdir"
+
+ _pick docs "$pkgdir"/usr/share/doc
+
+ install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
+}
+
+package_pipewire-media-session-docs() {
+ pkgdesc+=" - documentation"
+
+ mv docs/* "$pkgdir"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
+}
+
+# vim:set sw=2 et: