55 lines
1.9 KiB
Bash
55 lines
1.9 KiB
Bash
# Template file for 'fcitx5-configtool'
|
|
pkgname=fcitx5-configtool
|
|
version=5.1.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DENABLE_KCM=ON -DENABLE_CONFIG_QT=ON -DENABLE_TEST=ON"
|
|
hostmakedepends="cldr-emoji-annotation pkg-config gettext doxygen
|
|
extra-cmake-modules glib-devel qt5-qmake qt5-host-tools xkeyboard-config
|
|
AppStream kcoreaddons kpackage"
|
|
makedepends="libfcitx5-devel fcitx5-gtk-devel fcitx5-qt5-devel
|
|
libglib-devel qt5-devel qt5-x11extras-devel kitemviews-devel
|
|
qt5-quickcontrols2-devel qt5-declarative-devel kcoreaddons-devel
|
|
ki18n-devel kpackage-devel kdeclarative-devel kirigami2-devel
|
|
plasma-framework-devel kiconthemes-devel kwidgetsaddons-devel
|
|
libxkbcommon-devel iso-codes libX11-devel libxkbfile-devel"
|
|
depends="qt5-svg"
|
|
short_desc="Fcitx v5 - config tool"
|
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://fcitx-im.org/wiki/Fcitx"
|
|
distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-configtool/fcitx5-configtool-${version}.tar.xz"
|
|
checksum=16e2975727e85bc6a6cf05294bff4e3081ef09fe548366b02f74ffbe2d53eb8c
|
|
lib32disabled=yes
|
|
|
|
post_install() {
|
|
# belongs to fcitx5-kcm
|
|
rm ${DESTDIR}/usr/share/locale/*/*/org.fcitx.fcitx5.kcm.mo
|
|
}
|
|
|
|
fcitx5-migrator_package() {
|
|
short_desc="${short_desc/config/migration}"
|
|
lib32disabled=yes
|
|
pkg_install() {
|
|
vmove usr/bin/fcitx5-migrator
|
|
vmove "usr/lib/libFcitx5Migrator.so*"
|
|
vmove usr/share/applications/org.fcitx.fcitx5-migrator.desktop
|
|
}
|
|
}
|
|
|
|
fcitx5-kcm_package() {
|
|
short_desc="KDE config module for Fcitx5"
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision}<=${version}_9999
|
|
kde-cli-tools"
|
|
pkg_install() {
|
|
vmove usr/bin/fcitx5-plasma-theme-generator
|
|
vmove usr/lib/qt5/plugins/kcms
|
|
vmove usr/share/kpackage
|
|
vmove usr/share/kservices5
|
|
vmove usr/share/metainfo
|
|
DESTDIR=${PKGDESTDIR} \
|
|
ninja -C build po/org.fcitx.fcitx5.kcm/install
|
|
}
|
|
}
|