app-alternatives/phosh-keyboard: add 2

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2025-07-06 20:36:51 +05:00
parent 38fafce5db
commit 3de75bb7df
2 changed files with 25 additions and 0 deletions

View File

@@ -9,5 +9,8 @@
<flag name="phosh-osk-stub">
Symlink to <pkg>phosh-base/phosh-osk-stub</pkg>
</flag>
<flag name="stevia">
Symlink to <pkg>phosh-base/phosh-osk-stevia</pkg>
</flag>
</use>
</pkgmetadata>

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=(
"stevia:phosh-base/phosh-osk-stevia"
)
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.Stevia.desktop "${target:?}";;
esac
}