commit:     e6baca1ac10d95a16d4f24fc47d21ad405fb9610
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat May 17 14:00:27 2025 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sat May 17 15:17:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e6baca1a

app-alternatives/phosh-keyboard: add 1

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 .../phosh-keyboard/phosh-keyboard-1.ebuild         | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/app-alternatives/phosh-keyboard/phosh-keyboard-1.ebuild 
b/app-alternatives/phosh-keyboard/phosh-keyboard-1.ebuild
new file mode 100644
index 000000000..83ae468d8
--- /dev/null
+++ b/app-alternatives/phosh-keyboard/phosh-keyboard-1.ebuild
@@ -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
+}

Reply via email to