upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / fcitx / trunk / PKGBUILD
bloba77a690fd5d9e8c48b6f52da74d6a8376d0757b5
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: csslayer <wengxt AT gmail com>
5 pkgname=fcitx
6 pkgdesc="Flexible Context-aware Input Tool with eXtension"
7 pkgver=4.2.9.9
8 pkgrel=1
9 groups=('fcitx-im')
10 arch=('x86_64')
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'
28             'SKIP')
29 validpgpkeys=('2CC8A0609AD2A479C65B6D5C8E8B898CBF2412F9')  # Weng Xuetian
31 prepare() {
32   mkdir build
34   sed -e 's|enchant/enchant.h|enchant-2/enchant.h|' -i $pkgname-$pkgver/cmake/FindEnchant.cmake
37 build() {
38   cd build
40   cmake ../$pkgname-$pkgver \
41     -DCMAKE_INSTALL_PREFIX=/usr \
42     -DSYSCONFDIR=/etc \
43     -DFORCE_OPENCC=ON \
44     -DFORCE_PRESAGE=ON \
45     -DFORCE_ENCHANT=ON \
46     -DENABLE_TEST=ON \
47     -DENABLE_QT=OFF \
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
52   make
55 check() {
56   cd build
57   make test
60 package() {
61   cd build
62   make DESTDIR="$pkgdir" install