main/postmarketos-ui-weston: add -openrc subpackage (MR 5374)

This commit is contained in:
Bart Ribbers 2024-07-23 21:18:38 +02:00 committed by Clayton Craft
parent d8cb2f86cf
commit 46065a64c4
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
4 changed files with 17 additions and 4 deletions

View file

@ -2,15 +2,15 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org> # Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=postmarketos-ui-weston pkgname=postmarketos-ui-weston
pkgver=6 pkgver=6
pkgrel=8 pkgrel=9
pkgdesc="(Wayland) Reference compositor (demo, not a phone interface)" pkgdesc="(Wayland) Reference compositor (demo, not a phone interface)"
url="https://postmarketos.org" url="https://postmarketos.org"
arch="noarch" arch="noarch"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
depends=" depends="
bluez
dnsmasq dnsmasq
elogind elogind
elogind-openrc
postmarketos-base-ui postmarketos-base-ui
postmarketos-base-ui-networkmanager postmarketos-base-ui-networkmanager
tinydm tinydm
@ -28,7 +28,7 @@ _pmb_recommends="htop
weston-xwayland weston-xwayland
xwayland xwayland
" "
install="$pkgname.post-install $pkgname.post-upgrade" subpackages="$pkgname-openrc"
source="start_weston.sh weston.ini.default" source="start_weston.sh weston.ini.default"
options="!check pmb:gpu-accel" # Meta package, no test suite options="!check pmb:gpu-accel" # Meta package, no test suite
@ -39,6 +39,19 @@ package() {
install -Dm644 "$srcdir"/weston.ini.default \ install -Dm644 "$srcdir"/weston.ini.default \
"$pkgdir"/etc/xdg/weston/weston.ini.default "$pkgdir"/etc/xdg/weston/weston.ini.default
} }
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="
bluez-openrc
elogind-openrc
lightdm-openrc
networkmanager-openrc
"
mkdir -p "$subpkgdir"
}
sha512sums=" sha512sums="
6c9f4f6eeb179b067f1d08c84f35d6a705043432a92c3733491de3c240d48a85e95173e0b4e2f83b737761212a2aec365b1375c077c330735013c9cf36d4390e start_weston.sh 6c9f4f6eeb179b067f1d08c84f35d6a705043432a92c3733491de3c240d48a85e95173e0b4e2f83b737761212a2aec365b1375c077c330735013c9cf36d4390e start_weston.sh
57d2dd91aa6bee6ab73122bf26906de183fceee9f6c28586ac803045344b10c4e3c7e9cd23cada86a585c42221505a2d23572e3d6d1fd757c1ed1c8e1b65644c weston.ini.default 57d2dd91aa6bee6ab73122bf26906de183fceee9f6c28586ac803045344b10c4e3c7e9cd23cada86a585c42221505a2d23572e3d6d1fd757c1ed1c8e1b65644c weston.ini.default

View file

@ -0,0 +1 @@
postmarketos-ui-weston-openrc.post-install

View file

@ -1 +0,0 @@
postmarketos-ui-weston.post-install