aboutsummaryrefslogtreecommitdiff
path: root/misc/fcitx5-chinese-addons
diff options
context:
space:
mode:
authorltlnx <ltlnx@gmx.com>2023-09-07 20:09:43 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-09 10:14:09 +0700
commit66e1fd5b9c040c661daccbdb8d3fe1827f48e422 (patch)
treec66713e784aa0e153f79163bffe8c16e91a2275c /misc/fcitx5-chinese-addons
parent4a6ad399f2426d78ebb68336ce39a9aee6658d22 (diff)
misc/fcitx5-chinese-addons: Updated for version 5.1.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/fcitx5-chinese-addons')
-rw-r--r--misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild6
-rw-r--r--misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info6
-rw-r--r--misc/fcitx5-chinese-addons/patches/disable-lua-req.patch30
3 files changed, 37 insertions, 5 deletions
diff --git a/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild b/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild
index 2c6b3edc145e3..348bc92eceb9a 100644
--- a/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild
+++ b/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.SlackBuild
@@ -23,8 +23,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=fcitx5-chinese-addons
-VERSION=${VERSION:-5.0.17}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-5.1.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -74,6 +74,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/patches/disable-lua-req.patch
+
mkdir -p build
cd build
cmake \
diff --git a/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info b/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info
index 732db505b4ce9..1ef735902067b 100644
--- a/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info
+++ b/misc/fcitx5-chinese-addons/fcitx5-chinese-addons.info
@@ -1,8 +1,8 @@
PRGNAM="fcitx5-chinese-addons"
-VERSION="5.0.17"
+VERSION="5.1.0"
HOMEPAGE="https://github.com/fcitx/fcitx5-chinese-addons"
-DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-5.0.17_dict.tar.xz"
-MD5SUM="e8453b2974f6e5e2149e5b14302c52bc"
+DOWNLOAD="https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-5.1.0_dict.tar.xz"
+MD5SUM="958bcf0ca84327235e590c5e6946d6d9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fcitx5 fcitx5-qt libime"
diff --git a/misc/fcitx5-chinese-addons/patches/disable-lua-req.patch b/misc/fcitx5-chinese-addons/patches/disable-lua-req.patch
new file mode 100644
index 0000000000000..b309d6f131962
--- /dev/null
+++ b/misc/fcitx5-chinese-addons/patches/disable-lua-req.patch
@@ -0,0 +1,30 @@
+From 37592053f8ba71f08dde2058c7763f28809e401e Mon Sep 17 00:00:00 2001
+From: Weng Xuetian <wengxt@gmail.com>
+Date: Sun, 20 Aug 2023 09:59:10 -0700
+Subject: [PATCH] fix build without lua
+
+---
+ im/pinyin/pinyin.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/im/pinyin/pinyin.cpp b/im/pinyin/pinyin.cpp
+index de428ed..360a691 100644
+--- a/im/pinyin/pinyin.cpp
++++ b/im/pinyin/pinyin.cpp
+@@ -826,6 +826,8 @@ std::string PinyinEngine::evaluateCustomPhrase(InputContext *inputContext,
+ if (!result.empty()) {
+ return result;
+ }
++
++#ifdef FCITX_HAS_LUA
+ if (stringutils::startsWith(key, "lua:")) {
+ RawConfig config;
+ auto ret = imeapi()->call<ILuaAddon::invokeLuaFunction>(
+@@ -834,6 +836,7 @@ std::string PinyinEngine::evaluateCustomPhrase(InputContext *inputContext,
+ return ret.value();
+ }
+ }
++#endif
+ return "";
+ }
+