main/postmarketos-ui-phosh: support openrc and systemd installs (MR 5171)
Also see: MR 4904 Co-authored-by: Clayton Craft <clayton@craftyguy.net>
This commit is contained in:
parent
b18ccab0f5
commit
7f16b13781
4 changed files with 33 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Newbyte <newbyte@postmarketos.org>
|
||||
pkgname=postmarketos-ui-phosh
|
||||
pkgver=22.3
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="(Wayland) Mobile UI initially developed for the Librem 5"
|
||||
url="https://phosh.mobi"
|
||||
arch="noarch !armhf"
|
||||
|
@ -20,8 +20,6 @@ depends="
|
|||
postmarketos-base-ui-gnome
|
||||
postmarketos-base-ui-qt-tweaks
|
||||
postmarketos-base-ui-qt-wayland
|
||||
tinydm
|
||||
tinydm-openrc
|
||||
udiskie
|
||||
xdg-desktop-portal-wlr
|
||||
"
|
||||
|
@ -44,7 +42,8 @@ source="
|
|||
mimeapps.list
|
||||
udiskie.desktop
|
||||
"
|
||||
options="!check pmb:gpu-accel"
|
||||
options="!check pmb:gpu-accel pmb:systemd"
|
||||
subpackages="$pkgname-openrc $pkgname-systemd"
|
||||
|
||||
package() {
|
||||
install -Dm644 "$srcdir"/01_postmarketos-ui-phosh.gschema.override \
|
||||
|
@ -55,6 +54,26 @@ package() {
|
|||
"$pkgdir"/etc/xdg/autostart/udiskie.desktop
|
||||
}
|
||||
|
||||
openrc() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel openrc"
|
||||
install="$subpkgname.post-install"
|
||||
depends="
|
||||
tinydm
|
||||
tinydm-openrc
|
||||
"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
systemd() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel systemd"
|
||||
install="$subpkgname.post-install"
|
||||
depends="
|
||||
libcap-utils
|
||||
phosh-service
|
||||
"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
e577b8073df680ccee75ef5b6bb1f2877d5727687d63d6fd9211298e791b6c9f593eb79278c77a4b4918e3c57333c2a012030baf5a3c8d6d16000cc63a030f84 01_postmarketos-ui-phosh.gschema.override
|
||||
a741e8db9e4232334b924326c48be4e4c8f7a2382a7608926918a7491c518b2dda551e55a00d4d5fcf58c7950a78dc35d5cc5eaab53ad93a56de40887071f242 mimeapps.list
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
rc-update add tinydm default
|
||||
rc-update add waked default
|
||||
tinydm-set-session -s /usr/share/wayland-sessions/phosh.desktop
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
systemctl enable phosh
|
|
@ -1,9 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
rc-update add tinydm default
|
||||
rc-update add waked default
|
||||
tinydm-set-session -s /usr/share/wayland-sessions/phosh.desktop
|
||||
|
||||
# Add the user to relevant groups in post-upgrade (symlink to post-install).
|
||||
# Note that we don't want to rely on users existing in post-install
|
||||
# (pmaports#820), therefore the group is also set via _pmb_groups during
|
||||
|
|
Loading…
Reference in a new issue