fcitx: update to 4.2.9.9.

This commit is contained in:
Đoàn Trần Công Danh 2022-08-28 00:01:40 +07:00
parent ca47e0dd84
commit 400fd24f57
1 changed files with 34 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'fcitx' # Template file for 'fcitx'
pkgname=fcitx pkgname=fcitx
version=4.2.9.8 version=4.2.9.9
revision=5 revision=1
build_style=cmake build_style=cmake
build_helper=gir build_helper=gir
configure_args="-DSYSCONFDIR=/etc -DFORCE_OPENCC=OFF -DFORCE_PRESAGE=OFF configure_args="-DSYSCONFDIR=/etc -DFORCE_OPENCC=OFF -DFORCE_PRESAGE=OFF
@ -18,8 +18,28 @@ short_desc="Flexible Context-aware Input Tool with eXtension"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>" maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-2.0-or-later, LGPL-2.1-or-later, MIT" license="GPL-2.0-or-later, LGPL-2.1-or-later, MIT"
homepage="https://fcitx-im.org/" homepage="https://fcitx-im.org/"
distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}_dict.tar.xz" _en_dict=20121020
checksum=bc3515cba0561546fe02dae81391d4a03e0e79a2d668aa794cd3a377284033c6 _pytable=20121124
_pystroke=20121124
distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}.tar.xz
https://download.fcitx-im.org/data/en_dict-${_en_dict}.tar.gz
http://download.fcitx-im.org/data/py_table-${_pytable}.tar.gz
http://download.fcitx-im.org/data/py_stroke-${_pystroke}.tar.gz
http://download.fcitx-im.org/data/pinyin.tar.gz
http://download.fcitx-im.org/data/table.tar.gz
"
checksum="307bddeabbec383eb27c4ea222d9f71d8d9011d7942f4010368e5bc3ca7440a1
c44a5d7847925eea9e4d2d04748d442cd28dd9299a0b572ef7d91eac4f5a6ceb
42146ac97de6c13d55f9e99ed873915f4c66739e9c11532a34556badf9792c04
8eb128a9bfa43952e67cf2fcee1fd134c6f4cfd317bc2f6c38a615f5eb64e248
583829b24a758c087c08de4a69480d0bf5946354fe77db360d6d7f467c2bd8e1
6196053c724125e3ae3d8bd6b2f9172d0c83b65b0d410d3cde63b7a8d6ab87b7"
skip_extraction="
en_dict-${_en_dict}.tar.gz
py_table-${_pytable}.tar.gz
py_stroke-${_pystroke}.tar.gz
pinyin.tar.gz
table.tar.gz"
lib32disabled=yes lib32disabled=yes
# Warning: do NOT enable backtrace for musl, do NOT add libexecinfo-devel # Warning: do NOT enable backtrace for musl, do NOT add libexecinfo-devel
@ -34,6 +54,16 @@ fi
build_options="gir" build_options="gir"
build_options_default="gir" build_options_default="gir"
post_extract() {
local _src="$XBPS_SRCDISTDIR/fcitx-$version"
cp "$_src/en_dict-${_en_dict}.tar.gz" src/module/spell/dict
cp "$_src/py_table-${_pytable}.tar.gz" \
"$_src/py_stroke-${_pystroke}.tar.gz" \
src/module/pinyin-enhance/data
cp "$_src/pinyin.tar.gz" src/im/pinyin/data
cp "$_src/table.tar.gz" src/im/table/data
}
pre_configure() { pre_configure() {
# include FcitxMacro.cmake without invoking fcitx4-config # include FcitxMacro.cmake without invoking fcitx4-config
vsed -i -e 's;INCLUDE(${FCITX4_PREFIX}/share/cmake/fcitx;INCLUDE(${CMAKE_CURRENT_LIST_DIR};' \ vsed -i -e 's;INCLUDE(${FCITX4_PREFIX}/share/cmake/fcitx;INCLUDE(${CMAKE_CURRENT_LIST_DIR};' \