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

[ci:ignore-count]
This commit is contained in:
Bart Ribbers 2024-07-23 22:15:12 +02:00 committed by Clayton Craft
parent 7a5970f6d9
commit 26236e94a9
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
4 changed files with 19 additions and 5 deletions

View file

@ -1,7 +1,7 @@
# Reference: https://postmarketos.org/uipkg
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=postmarketos-ui-asteroid
pkgver=0.2
pkgver=1
pkgrel=0
pkgdesc="(Wayland) Smartwatch UI from AsteroidOS"
url="https://wiki.postmarketos.org/wiki/AsteroidOS"
@ -15,10 +15,8 @@ depends="
# Required to launch
depends="$depends
elogind
elogind-openrc
postmarketos-base-ui
tinydm
tinydm-openrc
"
_pmb_recommends="
asteroid-alarmclock
@ -35,7 +33,7 @@ _pmb_recommends="
asteroid-weather
"
_pmb_groups="users"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-openrc"
source="
asteroid.desktop
asteroid-launcher-wrapper.sh
@ -49,6 +47,22 @@ package() {
install -Dm755 "$srcdir"/gtk-app-wayland.sh -t "$pkgdir"/etc/profile.d/
}
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="
bluez-openrc
connman-openrc
dsme-openrc
elogind-openrc
mce-openrc
tinydm-openrc
usb-moded-openrc
"
mkdir -p "$subpkgdir"
}
sha512sums="
6dab13e0fb128cce487554871ce4786334b46e0f8f0ffbef0a222607e04f5b49660872ea59b322790e4e35f9b7a53040233823308ba280a8b21c86a412405ec0 asteroid.desktop
d6895807af865d89982c65cfda6616a55dfdaca3979ef045188489359462a87c0ffc51afc6779ba2aede614c13787a7499d6e7543c8a27e3210758b87b08f876 asteroid-launcher-wrapper.sh

View file

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

View file

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