diff options
author | 2024-02-06 22:18:20 +0500 | |
---|---|---|
committer | 2024-02-08 12:09:50 +0500 | |
commit | bdebd593450acad002baf1cdefa7d4c8fd40bf16 (patch) | |
tree | 3afa17830116a9b6874617445a87d93d66b1e665 /app-alternatives | |
parent | phosh-base/squeekboard: keyword 1.17.1 for ~amd64 (diff) | |
download | guru-bdebd593450acad002baf1cdefa7d4c8fd40bf16.tar.gz guru-bdebd593450acad002baf1cdefa7d4c8fd40bf16.tar.bz2 guru-bdebd593450acad002baf1cdefa7d4c8fd40bf16.zip |
app-alternatives/phosh-keyboard: new package, add 0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'app-alternatives')
-rw-r--r-- | app-alternatives/phosh-keyboard/metadata.xml | 16 | ||||
-rw-r--r-- | app-alternatives/phosh-keyboard/phosh-keyboard-0.ebuild | 25 |
2 files changed, 41 insertions, 0 deletions
diff --git a/app-alternatives/phosh-keyboard/metadata.xml b/app-alternatives/phosh-keyboard/metadata.xml new file mode 100644 index 000000000..d0bedfc5e --- /dev/null +++ b/app-alternatives/phosh-keyboard/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>cyber+gentoo@sysrq.in</email> + <name>Anna</name> + </maintainer> + <use> + <flag name="phosh-osk-stub"> + Symlink to <pkg>phosh-base/phosh-osk-stub</pkg> + </flag> + <flag name="squeekboard"> + Symlink to <pkg>phosh-base/squeekboard</pkg> + </flag> + </use> +</pkgmetadata> diff --git a/app-alternatives/phosh-keyboard/phosh-keyboard-0.ebuild b/app-alternatives/phosh-keyboard/phosh-keyboard-0.ebuild new file mode 100644 index 000000000..52e2d5374 --- /dev/null +++ b/app-alternatives/phosh-keyboard/phosh-keyboard-0.ebuild @@ -0,0 +1,25 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ALTERNATIVES=( + phosh-osk-stub:phosh-base/phosh-osk-stub + squeekboard:phosh-base/squeekboard +) + +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 sm.puri.Phosh.OskStub.desktop "${target:?}";; + squeekboard) + dosym sm.puri.Squeekboard.desktop "${target:?}";; + esac +} |