1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: csslayer <wengxt AT gmail com>
6 pkgdesc="Flexible Context-aware Input Tool with eXtension"
11 url="https://fcitx-im.org"
12 license=('GPL' 'LGPL')
13 provides=('fcitx-gtk2' 'fcitx-gtk3')
14 conflicts=('fcitx-gtk2' 'fcitx-gtk3')
15 replaces=('fcitx-gtk2' 'fcitx-gtk3')
16 depends=('pango' 'libxinerama' 'gtk-update-icon-cache' 'shared-mime-info'
17 'hicolor-icon-theme' 'desktop-file-utils' 'libxkbfile'
18 'libxfixes' 'dbus' 'icu' 'libxkbcommon')
19 optdepends=('enchant: for word predication support'
20 'opencc: optional engine to do chinese convert'
21 'gettext: for fcitx-po-parser'
22 'fcitx-configtool: for configuration (GTK based)'
23 'kcm-fcitx: for configuration under KDE')
24 makedepends=('extra-cmake-modules' 'doxygen' 'gtk2' 'gtk3' 'mesa' 'opencc'
25 'iso-codes' 'gobject-introspection' 'enchant' 'python')
26 source=("https://download.fcitx-im.org/$pkgname/$pkgname-${pkgver}_dict.tar.xz"{,.sig})
27 sha512sums=('d871df84ebb3514b6474000b693246c8e5b198121e9a5a0ca18d478e54cd4144f8dfb58922a004952d26ab3bcfc1f417c446c22d30994ef40875fc2ee3cda441'
29 validpgpkeys=('2CC8A0609AD2A479C65B6D5C8E8B898CBF2412F9') # Weng Xuetian
34 sed -e 's|enchant/enchant.h|enchant-2/enchant.h|' -i $pkgname-$pkgver/cmake/FindEnchant.cmake
40 cmake ../$pkgname-$pkgver \
41 -DCMAKE_INSTALL_PREFIX=/usr \
48 -DENABLE_GTK2_IM_MODULE=ON \
49 -DENABLE_GTK3_IM_MODULE=ON \
50 -DENCHANT_INCLUDE_DIR=/usr/include/enchant-2/ \
51 -DENCHANT_LIBRARIES=/usr/lib/libenchant-2.so
62 make DESTDIR="$pkgdir" install