mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 21:57:02 +02:00
fcitx5-chinese-addons: update to 5.1.3.
This commit is contained in:
parent
66cfa704d8
commit
ad9d9f5735
1 changed files with 29 additions and 6 deletions
|
@ -1,12 +1,13 @@
|
|||
# Template file for 'fcitx5-chinese-addons'
|
||||
pkgname=fcitx5-chinese-addons
|
||||
version=5.1.2
|
||||
version=5.1.3
|
||||
revision=1
|
||||
build_style=cmake
|
||||
hostmakedepends="pkg-config gettext doxygen extra-cmake-modules qt5-qmake
|
||||
qt5-host-tools libime-utils"
|
||||
configure_args="-DENABLE_OPENCC=ON -DENABLE_GUI=ON -DENABLE_BROWSER=ON
|
||||
-DENABLE_CLOUDPINYIN=ON -DENABLE_DATA=ON"
|
||||
hostmakedepends="pkg-config gettext doxygen extra-cmake-modules libime-utils"
|
||||
makedepends="libfcitx5-devel fmt-devel opencc-devel fcitx5-lua-devel
|
||||
libcurl-devel qt5-webkit-devel boost-devel libime-devel fcitx5-qt5-devel"
|
||||
libcurl-devel boost-devel libime-devel"
|
||||
depends="fcitx5-chinese-addons-icons"
|
||||
short_desc="Fcitx5 - Chinese related addon"
|
||||
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||
|
@ -17,7 +18,7 @@ _pystroke_version=20121124
|
|||
distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-${version}.tar.xz
|
||||
http://download.fcitx-im.org/data/py_table-${_pytable_version}.tar.gz
|
||||
http://download.fcitx-im.org/data/py_stroke-${_pystroke_version}.tar.gz"
|
||||
checksum="ffe2961619f91a67df700aed07c774d7aed354cf27675a8323727e87446bd81c
|
||||
checksum="4f0d56033593be12ccec9ee1a6a966048c7b0de3c88371f7fc5b3b49578cf22d
|
||||
42146ac97de6c13d55f9e99ed873915f4c66739e9c11532a34556badf9792c04
|
||||
8eb128a9bfa43952e67cf2fcee1fd134c6f4cfd317bc2f6c38a615f5eb64e248"
|
||||
skip_extraction="
|
||||
|
@ -25,6 +26,24 @@ skip_extraction="
|
|||
py_stroke-${_pystroke_version}.tar.gz"
|
||||
lib32disabled=yes
|
||||
|
||||
_have_webengine=no
|
||||
if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
|
||||
_have_webengine=yes
|
||||
fi
|
||||
if [ "$XBPS_WORDSIZE" = 32 ]; then
|
||||
_have_webengine=no
|
||||
fi
|
||||
|
||||
if [ "$_have_webengine" = yes ]; then
|
||||
configure_args+=" -DUSE_QT6=ON -DUSE_WEBKIT=OFF"
|
||||
hostmakedepends+=" qt6-base"
|
||||
makedepends+=" qt6-webengine-devel fcitx5-qt6-devel"
|
||||
else
|
||||
configure_args+=" -DUSE_QT6=OFF -DUSE_WEBKIT=ON"
|
||||
hostmakedepends+=" qt5-host-tools qt5-qmake"
|
||||
makedepends+=" qt5-webkit-devel fcitx5-qt5-devel"
|
||||
fi
|
||||
|
||||
post_extract() {
|
||||
local _srcdistdir=${XBPS_SRCDISTDIR}/${pkgname}-${version}
|
||||
local _file
|
||||
|
@ -33,6 +52,10 @@ post_extract() {
|
|||
done
|
||||
}
|
||||
|
||||
post_configure() {
|
||||
cp modules/punctuation/punc.mb.* build/modules/punctuation/
|
||||
}
|
||||
|
||||
fcitx5-chinese-addons-icons_package() {
|
||||
short_desc+=" - icons"
|
||||
pkg_install() {
|
||||
|
@ -52,7 +75,7 @@ fcitx5-chinese-addons-pinyin-dict-manager_package() {
|
|||
short_desc+=" - Pinyin Dictionaries Manager"
|
||||
depends="fcitx5-chinese-addons>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/fcitx5/qt5
|
||||
vmove "usr/lib/fcitx5/qt*"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue