fcitx: use shared icons with fcitx5
This commit is contained in:
parent
b8c3399699
commit
dfa8397a59
|
@ -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.8
|
||||||
revision=3
|
revision=4
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
build_helper=gir
|
build_helper=gir
|
||||||
short_desc="Flexible Context-aware Input Tool with eXtension"
|
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
|
makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
|
||||||
json-c-devel opencc-devel
|
json-c-devel opencc-devel
|
||||||
libxkbfile-devel icu-devel dbus-devel gtk+-devel gtk+3-devel"
|
libxkbfile-devel icu-devel dbus-devel gtk+-devel gtk+3-devel"
|
||||||
|
depends="fcitx5-icons fcitx5-chinese-addons-icons"
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
configure_args="-DCMAKE_BUILD_TYPE=None
|
configure_args="-DCMAKE_BUILD_TYPE=None
|
||||||
-DSYSCONFDIR=/etc -DFORCE_OPENCC=OFF -DFORCE_PRESAGE=OFF
|
-DSYSCONFDIR=/etc -DFORCE_OPENCC=OFF -DFORCE_PRESAGE=OFF
|
||||||
|
@ -54,6 +55,14 @@ pre_build() {
|
||||||
LDFLAGS+=" -Wl,--rpath-link=$wrksrc/build/src/lib/fcitx-utils"
|
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() {
|
libfcitx_package() {
|
||||||
short_desc+=" - shared libraries"
|
short_desc+=" - shared libraries"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
@ -68,7 +77,7 @@ libfcitx_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fcitx-devel_package() {
|
fcitx-devel_package() {
|
||||||
depends="libfcitx-${version}_${revision} glib-devel"
|
depends="libfcitx>=${version}_${revision} glib-devel"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/fcitx4-config
|
vmove usr/bin/fcitx4-config
|
||||||
|
|
Loading…
Reference in New Issue