add fcitx5-configtool

This commit is contained in:
termux-pacman-bot
2023-07-05 10:35:06 +00:00
parent 2ed6e39c06
commit c015dad7bb
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
TERMUX_PKG_HOMEPAGE=https://fcitx-im.org/
TERMUX_PKG_DESCRIPTION="Configuration tool for Fcitx5"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=5.0.17
TERMUX_PKG_SRCURL=https://github.com/fcitx/fcitx5-configtool/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=cb17484745027b339fcea58d6b17d0fde37a891f33aa4c1205625045ce41364d
TERMUX_PKG_DEPENDS="fcitx5, fcitx5-qt, iso-codes, kitemviews, kwidgetsaddons, libc++, libx11, libxkbfile, qt5-qtbase, qt5-qtsvg, qt5-qtx11extras, xkeyboard-config"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DENABLE_TEST=OFF
-DENABLE_CONFIG_QT=ON
-DENABLE_KCM=OFF
"

View File

@@ -0,0 +1,11 @@
--- fcitx5-configtool-5.0.17/layout/keyboardlayoutwidget.cpp.orig 2023-03-11 13:01:54
+++ fcitx5-configtool-5.0.17/layout/keyboardlayoutwidget.cpp 2023-04-22 02:28:28
@@ -37,7 +37,7 @@
constexpr unsigned int INVALID_KEYCODE = (unsigned int)(-1);
#ifndef XKB_RULES_XML_FILE
-#define XKB_RULES_XML_FILE "/usr/share/X11/xkb/rules/evdev.xml"
+#define XKB_RULES_XML_FILE "@TERMUX_PREFIX@/share/X11/xkb/rules/evdev.xml"
#endif
namespace fcitx {