fcitx: use shared icons with fcitx5

This commit is contained in:
Đoàn Trần Công Danh 2021-03-25 18:21:50 +07:00 committed by Đoàn Trần Công Danh
parent b8c3399699
commit dfa8397a59
1 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'fcitx'
pkgname=fcitx
version=4.2.9.8
revision=3
revision=4
build_style=cmake
build_helper=gir
short_desc="Flexible Context-aware Input Tool with eXtension"
@ -15,6 +15,7 @@ hostmakedepends="pkg-config doxygen extra-cmake-modules glib-devel"
makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
json-c-devel opencc-devel
libxkbfile-devel icu-devel dbus-devel gtk+-devel gtk+3-devel"
depends="fcitx5-icons fcitx5-chinese-addons-icons"
lib32disabled=yes
configure_args="-DCMAKE_BUILD_TYPE=None
-DSYSCONFDIR=/etc -DFORCE_OPENCC=OFF -DFORCE_PRESAGE=OFF
@ -54,6 +55,14 @@ pre_build() {
LDFLAGS+=" -Wl,--rpath-link=$wrksrc/build/src/lib/fcitx-utils"
}
post_install() {
find $DESTDIR/usr/share/icons -depth \
-name 'fcitx-kbd.*' -prune -o \
-name 'fcitx-vk-active.*' -prune -o \
-name 'fcitx-vk-inactive.*' -prune -o \
-type f -delete
}
libfcitx_package() {
short_desc+=" - shared libraries"
pkg_install() {
@ -68,7 +77,7 @@ libfcitx_package() {
}
}
fcitx-devel_package() {
depends="libfcitx-${version}_${revision} glib-devel"
depends="libfcitx>=${version}_${revision} glib-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/fcitx4-config