From c015dad7bbb1019fb146af449fceecebf2e11d7c Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Wed, 5 Jul 2023 10:35:06 +0000 Subject: [PATCH] add fcitx5-configtool --- x11-packages/fcitx5-configtool/build.sh | 13 +++++++++++++ .../fcitx5-configtool/fix-hardcoded-path.patch | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 x11-packages/fcitx5-configtool/build.sh create mode 100644 x11-packages/fcitx5-configtool/fix-hardcoded-path.patch diff --git a/x11-packages/fcitx5-configtool/build.sh b/x11-packages/fcitx5-configtool/build.sh new file mode 100644 index 0000000000..030b712121 --- /dev/null +++ b/x11-packages/fcitx5-configtool/build.sh @@ -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 +" diff --git a/x11-packages/fcitx5-configtool/fix-hardcoded-path.patch b/x11-packages/fcitx5-configtool/fix-hardcoded-path.patch new file mode 100644 index 0000000000..bfa8a8ba43 --- /dev/null +++ b/x11-packages/fcitx5-configtool/fix-hardcoded-path.patch @@ -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 {