main/postmarketos-base-ui: add audio subpackages (MR 5072)

This commit is contained in:
Brandon Boese 2024-04-26 12:55:24 -04:00 committed by Robert Eckelmann
parent 09eb3346d6
commit 87d355e08d
No known key found for this signature in database
GPG key ID: 30C0D50BEF63BF54

View file

@ -1,6 +1,6 @@
# Maintainer: Clayton Craft <clayton@craftyguy.net>
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"