summaryrefslogtreecommitdiff
path: root/testing/fcitx/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fcitx/PKGBUILD')
-rw-r--r--testing/fcitx/PKGBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/testing/fcitx/PKGBUILD b/testing/fcitx/PKGBUILD
new file mode 100644
index 000000000..2e4a2d55e
--- /dev/null
+++ b/testing/fcitx/PKGBUILD
@@ -0,0 +1,67 @@
+# $Id: PKGBUILD 155932 2012-04-09 13:40:42Z andyrtr $
+# 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.1
+pkgrel=2
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/fcitx/"
+license=('GPL')
+makedepends=('cmake' 'intltool' 'doxygen' 'gtk2' 'gtk3' 'qt' 'dbus-glib' 'icu')
+source=(http://fcitx.googlecode.com/files/${pkgbase}-${pkgver}.tar.xz Fix-for-gcc-4.7.0.patch)
+sha1sums=('74ad009cde48fb1efd48f8d2490fa36ddf36d215'
+ '3f9a31d67cdbbb25f2151cb81208f1f3e0dd6e8f')
+
+build() {
+ cd "${srcdir}"
+ (cd ${pkgbase}-${pkgver}; patch -p1 -i ../Fix-for-gcc-4.7.0.patch)
+ mkdir build
+ cd build
+ cmake ../${pkgbase}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_OPENCC=OFF \
+ -DENABLE_GTK3_IM_MODULE=ON \
+ -DENABLE_QT_IM_MODULE=ON
+ make
+}
+
+package_fcitx() {
+ pkgdesc="Free Chinese Input Toy of X - Input Method Server for X window system"
+ depends=('dbus-core' 'pango' 'libxinerama' 'gtk-update-icon-cache' \
+ 'shared-mime-info' 'hicolor-icon-theme' 'desktop-file-utils')
+ 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' 'dbus-glib' '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' 'dbus-glib' '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' 'icu' 'fcitx')
+
+ cd "${srcdir}"/build/src/frontend/qt
+ make DESTDIR="${pkgdir}" install
+}