main/postmarketos-base-ui: add -openrc subpackage (MR 5371)

Co-authored-by: Clayton Craft <clayton@craftyguy.net>
This commit is contained in:
jane400 2024-06-07 17:49:36 +02:00 committed by Clayton Craft
parent 157262f44d
commit eace38e0d7
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
3 changed files with 19 additions and 6 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: Clayton Craft <clayton@craftyguy.net> # Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=postmarketos-base-ui pkgname=postmarketos-base-ui
pkgver=25 pkgver=25
pkgrel=2 pkgrel=3
pkgdesc="Meta package for minimal postmarketOS UI base" pkgdesc="Meta package for minimal postmarketOS UI base"
url="https://postmarketos.org" url="https://postmarketos.org"
arch="noarch" arch="noarch"
@ -28,6 +28,7 @@ subpackages="
$pkgname-bluez-openrc:_bluez_openrc $pkgname-bluez-openrc:_bluez_openrc
$pkgname-bluez-obexd:_obexd $pkgname-bluez-obexd:_obexd
$pkgname-elogind $pkgname-elogind
$pkgname-openrc:_openrc
$pkgname-flatpak $pkgname-flatpak
$pkgname-networkmanager-usb-tethering:_usb_tethering $pkgname-networkmanager-usb-tethering:_usb_tethering
$pkgname-networkmanager $pkgname-networkmanager
@ -43,7 +44,6 @@ subpackages="
$pkgname-x11 $pkgname-x11
postmarketos-default-camera:_default_camera postmarketos-default-camera:_default_camera
" "
install="$pkgname.post-install $pkgname.post-upgrade"
replaces=" replaces="
chrony chrony
wpa_supplicant-openrc wpa_supplicant-openrc
@ -92,10 +92,10 @@ source="$(flatpath $_source644 $_source600 $_source755)"
_pmb_select="postmarketos-base-ui-wifi" _pmb_select="postmarketos-base-ui-wifi"
package() { package() {
# wifi and audio backends are provided by a subpackage in this APKBUILD, # wifi, audio and init backends are provided by a subpackage in this
# and it won't exist when this is evaluated at the top level. It's moved # APKBUILD and it won't exist when this is evaluated at the top level.
# into this function to work around it. # It's moved into this function to work around it.
depends="$depends postmarketos-base-ui-wifi postmarketos-base-ui-audio" depends="$depends $pkgname-wifi $pkgname-audio"
local i local i
for i in $_source644; do for i in $_source644; do
@ -133,6 +133,19 @@ _bluez_openrc() {
amove etc/conf.d/bluetooth amove etc/conf.d/bluetooth
} }
_openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="
chrony-openrc
dbus-openrc
haveged-openrc
util-linux-openrc
"
mkdir -p "$subpkgdir"
}
elogind() { elogind() {
install_if="$pkgname=$pkgver-r$pkgrel elogind" install_if="$pkgname=$pkgver-r$pkgrel elogind"
depends="sleep-inhibitor !systemd-logind" depends="sleep-inhibitor !systemd-logind"