main/postmarketos-base-ui: split out openrc specifics into subpackages (MR 5364)

Also renames subpackage bluez to bluez-openrc
This commit is contained in:
jane400 2024-06-05 21:28:32 +02:00 committed by Clayton Craft
parent dc81fbcd23
commit c3dfa1cdb4
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
7 changed files with 31 additions and 10 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=postmarketos-base-ui
pkgver=25
pkgrel=1
pkgrel=2
pkgdesc="Meta package for minimal postmarketOS UI base"
url="https://postmarketos.org"
arch="noarch"
@ -25,7 +25,7 @@ subpackages="
$pkgname-audio-none:_audio_none
$pkgname-audio-pipewire:_audio_pipewire
$pkgname-audio-pulseaudio:_audio_pulseaudio
$pkgname-bluez
$pkgname-bluez-openrc:_bluez_openrc
$pkgname-bluez-obexd:_obexd
$pkgname-elogind
$pkgname-flatpak
@ -37,6 +37,8 @@ subpackages="
$pkgname-tinydm
$pkgname-wayland
$pkgname-wifi-iwd:iwd
$pkgname-wifi-iwd-openrc:iwd_openrc
$pkgname-wifi-wpa_supplicant-openrc:wpa_supplicant_openrc
$pkgname-wifi-wpa_supplicant:wpa_supplicant
$pkgname-x11
postmarketos-default-camera:_default_camera
@ -125,7 +127,7 @@ x11() {
amove etc/X11/Xwrapper.config
}
bluez() {
_bluez_openrc() {
install_if="$pkgname=$pkgver-r$pkgrel bluez-openrc"
amove etc/conf.d/bluetooth
@ -210,27 +212,46 @@ qt_wayland() {
wpa_supplicant() {
pkgdesc="Use wpa_supplicant as the WiFi backend."
depends="wpa_supplicant"
install="$subpkgname.post-install $subpkgname.post-upgrade"
replaces="wpa_supplicant-openrc"
provides="postmarketos-base-ui-wifi=$pkgver-r$pkgrel"
provider_priority=100
depends="wpa_supplicant"
mkdir -p "$subpkgdir"
}
wpa_supplicant_openrc() {
install_if="$pkgname-wpa_supplicant=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="wpa_supplicant-openrc openrc"
replaces="wpa_supplicant-openrc"
replaces_priority=100
amove etc/conf.d/wpa_supplicant
}
iwd() {
pkgdesc="Use iwd as the WiFi backend (but may not work with all devices)"
depends="iwd"
install="$subpkgname.post-install $subpkgname.post-upgrade"
provides="postmarketos-base-ui-wifi=$pkgver-r$pkgrel"
# Lower than wpa_supplicant for now, see:
# https://gitlab.com/postmarketOS/pmaports/-/issues/1379
provider_priority=90
depends="iwd"
amove usr/lib/NetworkManager/conf.d/50-iwd.conf
}
iwd_openrc() {
install_if="$pkgname-iwd=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="iwd-openrc openrc"
mkdir -p "$subpkgdir"
}
_audio_none() {
pkgdesc="Do not install any audio backend."
provides="postmarketos-base-ui-audio=$pkgver-r$pkgrel"

View file

@ -0,0 +1 @@
postmarketos-base-ui-wifi-iwd-openrc.post-install

View file

@ -1 +0,0 @@
postmarketos-base-ui-wifi-iwd.post-install

View file

@ -0,0 +1 @@
postmarketos-base-ui-wifi-wpa_supplicant-openrc.post-install

View file

@ -1 +0,0 @@
postmarketos-base-ui-wifi-wpa_supplicant.post-install