app-alternatives/phosh-keyboard: add 1

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2025-05-17 19:00:27 +05:00
parent 15231c1fee
commit e6baca1ac1

View File

@@ -0,0 +1,22 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
ALTERNATIVES=(
"phosh-osk-stub:>=phosh-base/phosh-osk-stub-0.47.0"
)
inherit app-alternatives
DESCRIPTION="sm.puri.OSK0.desktop symlinks"
KEYWORDS="~amd64"
src_install() {
local target="/usr/share/applications/sm.puri.OSK0.desktop"
case $(get_alternative) in
phosh-osk-stub)
dosym mobi.phosh.OskStub.desktop "${target:?}";;
esac
}