main/postmarketos-base-ui: add audio subpackages (MR 5072)
This commit is contained in:
parent
09eb3346d6
commit
87d355e08d
1 changed files with 21 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue