diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-11-10 14:02:40 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-11-10 14:02:40 +0100 |
commit | bf8d5e47ebdb788735d74c8232db8ec4a724a0bb (patch) | |
tree | 807d2f70dec261ec60d7943f1d8a7cd1fc9422ab /community/fcitx/PKGBUILD | |
parent | 7b801d14eb78615912e7456a4654c2488bdee4d5 (diff) | |
parent | 15afd71b619115bc72670c443a6d1b75275ead0c (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/giggle/PKGBUILD
extra/kdeplasma-addons/PKGBUILD
extra/kdesdk/PKGBUILD
extra/libgusb/PKGBUILD
Diffstat (limited to 'community/fcitx/PKGBUILD')
-rw-r--r-- | community/fcitx/PKGBUILD | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/community/fcitx/PKGBUILD b/community/fcitx/PKGBUILD new file mode 100644 index 000000000..e3be09540 --- /dev/null +++ b/community/fcitx/PKGBUILD @@ -0,0 +1,75 @@ +# $Id: PKGBUILD 79645 2012-11-10 00:57:49Z ebelanger $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Contributor: csslayer <wengxt AT gmail com> + +pkgbase=fcitx +pkgname=('fcitx' 'fcitx-gtk2' 'fcitx-gtk3' 'fcitx-qt') +pkgver=4.2.6.1 +pkgrel=1 +arch=('i686' 'x86_64') +url="http://code.google.com/p/fcitx/" +license=('GPL') +makedepends=('cmake' 'intltool' 'doxygen' 'gtk2' 'gtk3' 'qt' 'icu' 'wget' \ + 'iso-codes' 'gobject-introspection' 'libxkbfile' 'enchant') +source=(http://fcitx.googlecode.com/files/${pkgbase}-${pkgver}.tar.xz) +sha1sums=('dc4577bb6bd6de41317f978196f377fc801cc63a') + +build() { + cd "${srcdir}" + mkdir build + cd build + cmake ../${pkgbase}-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_OPENCC=OFF \ + -DFORCE_PRESAGE=ON \ + -DENABLE_TEST=ON \ + -DENABLE_GTK3_IM_MODULE=ON \ + -DENABLE_QT_IM_MODULE=ON + make +} + +check() { + cd "${srcdir}"/build + make test +} + +package_fcitx() { + pkgdesc="Free Chinese Input Toy of X - Input Method Server for X window system" + depends=('pango' 'libxinerama' 'gtk-update-icon-cache' 'shared-mime-info' \ + 'hicolor-icon-theme' 'desktop-file-utils' 'libxkbfile' \ + 'libxfixes' 'dbus-core' 'icu') + optdepends=('enchant: for word predication support') + install=fcitx.install + + cd "${srcdir}"/build + make DESTDIR="${pkgdir}" install + + rm -r "${pkgdir}"/usr/lib/{gtk-2.0,gtk-3.0,qt} +} + +package_fcitx-gtk2() { + pkgdesc='GTK2 IM Module for fcitx' + depends=('gtk2' 'fcitx') + install=fcitx-gtk2.install + + cd "${srcdir}"/build/src/frontend/gtk2 + make DESTDIR="${pkgdir}" install +} + +package_fcitx-gtk3() { + pkgdesc='GTK3 IM Module for fcitx' + depends=('gtk3' 'fcitx') + install=fcitx-gtk3.install + + cd "${srcdir}"/build/src/frontend/gtk3 + make DESTDIR="${pkgdir}" install +} + +package_fcitx-qt() { + pkgdesc='QT IM Module for fcitx' + depends=('qt' 'fcitx') + + cd "${srcdir}"/build/src/frontend/qt + make DESTDIR="${pkgdir}" install +} |