pmaports/main/postmarketos-ui-sxmo-de-sway/APKBUILD
Aster Boese 9755b0ed94
main/postmarketos-ui-sxmo-*: explicitly add user to input
The input group should not be blanket allowed for UIs that do not need it as
it bypasses the security benefits of Wayland. This change explicitly adds
the input group to only the UIs that absolutely require it, which is only
SXMO due to their udev rules and lisgd.

Signed-off-by: Aster Boese <asterboese@mailbox.org>

[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8767>
2026-06-12 17:26:20 +00:00

63 lines
1.3 KiB
Text

# Reference: https://postmarketos.org/uipkg
# Co-Maintainer: Anjandev Momi <anjan@momi.ca>
# Co-Maintainer: Maarten van Gompel <proycon@anaproy.nl>
# Co-Maintainer: Aren Moynihan <aren@peacerevolution.org>
maintainer="Willow Barraco <contact@willowbarraco.fr>"
pkgname=postmarketos-ui-sxmo-de-sway
pkgver=1.18.0 # Bump this so the file names in bpo are correct
pkgrel=0
pkgdesc="Simple Mobile: Mobile environment based on SXMO and running on sway"
url="http://sr.ht/~mil/Sxmo"
arch="noarch"
license="AGPL-3.0-only"
depends="
postmarketos-base-ui
postmarketos-base-ui-audio
postmarketos-base-ui-networkmanager
sxmo-utils-sway
sxmo-utils-audio-bluetooth
"
install="
$pkgname.post-install
$pkgname.post-upgrade
"
_pmb_groups="
input
seat
"
_pmb_recommends="
w3m
sfeed
adwaita-icon-theme
clickclack
imv
postmarketos-artwork-wallpapers
ttyescape
"
provides="postmarketos-ui-sxmo"
provider_priority=10
options="!check pmb:drm"
subpackages="$pkgname-openrc"
package() {
mkdir -p "$pkgdir"
mkdir -p "$pkgdir"/etc/sway/config.d
}
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="
openrc
seatd-openrc
tinydm-openrc
modemmanager-openrc
networkmanager-openrc
bluez-openrc
iio-sensor-proxy-openrc
"
mkdir "$subpkgdir"
}