From 87d355e08daf843c3630966e8cd21deb5347dbf4 Mon Sep 17 00:00:00 2001 From: Brandon Boese Date: Fri, 26 Apr 2024 12:55:24 -0400 Subject: [PATCH] main/postmarketos-base-ui: add audio subpackages (MR 5072) --- main/postmarketos-base-ui/APKBUILD | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/main/postmarketos-base-ui/APKBUILD b/main/postmarketos-base-ui/APKBUILD index 51e88a5da..6b6941275 100644 --- a/main/postmarketos-base-ui/APKBUILD +++ b/main/postmarketos-base-ui/APKBUILD @@ -1,6 +1,6 @@ # Maintainer: Clayton Craft pkgname=postmarketos-base-ui -pkgver=20 +pkgver=21 pkgrel=0 pkgdesc="Meta package for minimal postmarketOS UI base" url="https://postmarketos.org" @@ -20,6 +20,8 @@ depends=" wireless-regdb " subpackages=" + $pkgname-audio-pipewire:_audio_pipewire + $pkgname-audio-pulseaudio:_audio_pulseaudio $pkgname-bluez $pkgname-bluez-obexd:_obexd $pkgname-elogind @@ -225,6 +227,24 @@ iwd() { amove usr/lib/NetworkManager/conf.d/50-iwd.conf } +_audio_pipewire() { + pkgdesc="Use pipewire as the audio backend. (but may not work with all devices)" + depends="pipewire pipewire-alsa pipewire-pulse wireplumber" + provides="postmarketos-base-ui-audio=$pkgver-r$pkgrel" + provider_priority=90 + + mkdir "$subpkgdir" +} + +_audio_pulseaudio() { + pkgdesc="Use pulseaudio as the audio backend." + depends="alsa-plugins-pulse pulseaudio pulseaudio-alsa" + provides="postmarketos-base-ui-audio=$pkgver-r$pkgrel" + provider_priority=100 + + mkdir "$subpkgdir" +} + flatpak() { install_if="$pkgname=$pkgver-r$pkgrel flatpak" install="$subpkgname.post-install"