[arch-commits] Commit in fcitx/repos (5 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 9 09:00:42 UTC 2017


    Date: Thursday, November 9, 2017 @ 09:00:41
  Author: felixonmars
Revision: 265811

archrelease: copy trunk to community-testing-x86_64

Added:
  fcitx/repos/community-testing-x86_64/
  fcitx/repos/community-testing-x86_64/PKGBUILD
    (from rev 265810, fcitx/trunk/PKGBUILD)
  fcitx/repos/community-testing-x86_64/fcitx-gtk2.install
    (from rev 265810, fcitx/trunk/fcitx-gtk2.install)
  fcitx/repos/community-testing-x86_64/fcitx-gtk3.install
    (from rev 265810, fcitx/trunk/fcitx-gtk3.install)
  fcitx/repos/community-testing-x86_64/fcitx.install
    (from rev 265810, fcitx/trunk/fcitx.install)

--------------------+
 PKGBUILD           |  100 +++++++++++++++++++++++++++++++++++++++++++++++++++
 fcitx-gtk2.install |   11 +++++
 fcitx-gtk3.install |   11 +++++
 fcitx.install      |    4 ++
 4 files changed, 126 insertions(+)

Copied: fcitx/repos/community-testing-x86_64/PKGBUILD (from rev 265810, fcitx/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-11-09 09:00:41 UTC (rev 265811)
@@ -0,0 +1,100 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: csslayer <wengxt AT gmail com>
+
+pkgbase=fcitx
+pkgname=('fcitx' 'fcitx-gtk2' 'fcitx-gtk3' 'fcitx-qt4')
+pkgver=4.2.9.5
+pkgrel=1
+groups=('fcitx-im')
+arch=('x86_64')
+url="http://fcitx-im.org"
+license=('GPL' 'LGPL')
+makedepends=('extra-cmake-modules' 'doxygen' 'gtk2' 'gtk3' 'qt4' 'icu' 'mesa' 'opencc' \
+             'iso-codes' 'gobject-introspection' 'libxkbfile' 'enchant' 'python2')
+source=("https://download.fcitx-im.org/$pkgbase/$pkgbase-${pkgver}_dict.tar.xz"{,.sig})
+sha512sums=('5e2ec5405b01fe85b1659b1db3e15389b0d7e096808db598d0865381bcb8f6de960e8e16d4432c95c586cfc3359d17d4f7bad0cff2fe0146fe00b9fb80491168'
+            'SKIP')
+validpgpkeys=('2CC8A0609AD2A479C65B6D5C8E8B898CBF2412F9')  # Weng Xuetian
+
+prepare() {
+  mkdir build
+}
+
+build() {
+  cd build
+
+  cmake ../${pkgbase}-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DSYSCONFDIR=/etc \
+    -DFORCE_OPENCC=ON \
+    -DFORCE_PRESAGE=ON \
+    -DFORCE_ENCHANT=ON \
+    -DENABLE_TEST=ON \
+    -DENABLE_GTK2_IM_MODULE=ON \
+    -DENABLE_GTK3_IM_MODULE=ON \
+    -DENABLE_QT_IM_MODULE=ON
+  make
+}
+
+check() {
+  cd build
+  make test
+}
+
+package_fcitx() {
+  pkgdesc="Flexible Context-aware Input Tool with eXtension"
+  depends=('pango' 'libxinerama' 'gtk-update-icon-cache' 'shared-mime-info' \
+           'hicolor-icon-theme' 'desktop-file-utils' 'libxkbfile' \
+           'libxfixes' 'dbus' 'icu' 'libxkbcommon')
+  optdepends=('enchant: for word predication support'
+              'opencc: optional engine to do chinese convert'
+              'gettext: for fcitx-po-parser')
+  install=fcitx.install
+
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/lib/{gtk-2.0,gtk-3.0,qt4}
+  rm -r "$pkgdir"/usr/include/fcitx-qt
+  rm "$pkgdir"/usr/lib/fcitx/libexec/fcitx-qt-gui-wrapper
+  rm "$pkgdir"/usr/lib/libfcitx-qt.so*
+  rm "$pkgdir"/usr/lib/pkgconfig/fcitx-qt.pc
+}
+
+package_fcitx-gtk2() {
+  pkgdesc='GTK2 IM Module for fcitx'
+  depends=('gtk2' "fcitx>=$pkgver")
+  install=fcitx-gtk2.install
+
+  cd build/src/frontend/gtk2
+  make DESTDIR="$pkgdir" install
+}
+
+package_fcitx-gtk3() {
+  pkgdesc='GTK3 IM Module for fcitx'
+  depends=('gtk3' "fcitx>=$pkgver")
+  install=fcitx-gtk3.install
+
+  cd build/src/frontend/gtk3
+  make DESTDIR="$pkgdir" install
+}
+
+package_fcitx-qt4() {
+  pkgdesc='Qt4 IM Module for fcitx'
+  depends=('qt4' "fcitx>=$pkgver")
+  replaces=('fcitx-qt')
+  provides=('fcitx-qt')
+  conflicts=('fcitx-qt')
+
+  cd "$srcdir"/build/src/frontend/qt
+  make DESTDIR="$pkgdir" install
+
+  cd "$srcdir"/build/tools/gui
+  make DESTDIR="$pkgdir" install
+
+  cd "$srcdir"/build/src/lib/fcitx-qt
+  make DESTDIR="$pkgdir" install
+}

Copied: fcitx/repos/community-testing-x86_64/fcitx-gtk2.install (from rev 265810, fcitx/trunk/fcitx-gtk2.install)
===================================================================
--- community-testing-x86_64/fcitx-gtk2.install	                        (rev 0)
+++ community-testing-x86_64/fcitx-gtk2.install	2017-11-09 09:00:41 UTC (rev 265811)
@@ -0,0 +1,11 @@
+post_install() {
+    usr/bin/gtk-query-immodules-2.0 --update-cache
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: fcitx/repos/community-testing-x86_64/fcitx-gtk3.install (from rev 265810, fcitx/trunk/fcitx-gtk3.install)
===================================================================
--- community-testing-x86_64/fcitx-gtk3.install	                        (rev 0)
+++ community-testing-x86_64/fcitx-gtk3.install	2017-11-09 09:00:41 UTC (rev 265811)
@@ -0,0 +1,11 @@
+post_install() {
+    usr/bin/gtk-query-immodules-3.0 --update-cache
+}
+
+post_upgrade() {
+    post_install
+}
+
+post_remove() {
+    post_install
+}

Copied: fcitx/repos/community-testing-x86_64/fcitx.install (from rev 265810, fcitx/trunk/fcitx.install)
===================================================================
--- community-testing-x86_64/fcitx.install	                        (rev 0)
+++ community-testing-x86_64/fcitx.install	2017-11-09 09:00:41 UTC (rev 265811)
@@ -0,0 +1,4 @@
+post_install() {
+  echo "You should at least install one of kcm-fcitx (For Qt/KDE users) or fcitx-configtool (For GTK+ users) to enable Fcitx configuration GUI."
+}
+


More information about the arch-commits mailing list