[arch-commits] Commit in fcitx/trunk (PKGBUILD fcitx.install)
Felix Yan
fyan at nymeria.archlinux.org
Sat Jan 26 02:08:39 UTC 2013
Date: Saturday, January 26, 2013 @ 03:08:39
Author: fyan
Revision: 82945
upgpkg: fcitx 4.2.7-1
Modified:
fcitx/trunk/PKGBUILD
fcitx/trunk/fcitx.install
---------------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++------------------
fcitx.install | 9 +++++----
2 files changed, 39 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-01-26 01:59:56 UTC (rev 82944)
+++ PKGBUILD 2013-01-26 02:08:39 UTC (rev 82945)
@@ -5,34 +5,35 @@
pkgbase=fcitx
pkgname=('fcitx' 'fcitx-gtk2' 'fcitx-gtk3' 'fcitx-qt')
-pkgver=4.2.6.1
-pkgrel=5
+pkgver=4.2.7
+pkgrel=1
groups=('fcitx-im')
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')
+makedepends=('cmake' 'doxygen' 'gtk2' 'gtk3' 'qt' 'icu' \
+ 'iso-codes' 'gobject-introspection' 'libxkbfile')
+source=(http://fcitx.googlecode.com/files/${pkgbase}-${pkgver}_dict.tar.xz)
build() {
cd "${srcdir}"
- mkdir build
+ mkdir -p build
cd build
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DENABLE_OPENCC=OFF \
+ -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 "${srcdir}"/build
+ cd "${srcdir}/build"
make test
}
@@ -42,6 +43,7 @@
'hicolor-icon-theme' 'desktop-file-utils' 'libxkbfile' \
'libxfixes' 'dbus-core' 'icu')
optdepends=('enchant: for word predication support'
+ 'opencc: optional engine to do chinese convert'
'fcitx-anthy: Hiragana text to Kana Kanji mixed text Japanese input method'
'fcitx-chewing: Intelligent Zhuyin input method library for traditional Chinese'
'fcitx-cloudpinyin: Standalone module for fcitx that uses pinyin API on the internet to provide additional input candidates'
@@ -61,37 +63,51 @@
'fcitx-table-other: Provides some other tables for Fcitx, fork from ibus-table-others, scim-tables'
'fcitx-ui-light: Light weight xlib and xft based ui for fcitx'
'fcitx-unikey: Fcitx Wrapper for unikey'
- 'kcm-fcitx: KDE Config Module for Fcitx')
+ 'kcm-fcitx: KDE Config Module for Fcitx'
+ 'gettext: for fcitx-po-parser')
install=fcitx.install
- cd "${srcdir}"/build
+ cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
- rm -r "${pkgdir}"/usr/lib/{gtk-2.0,gtk-3.0,qt}
+ rm -r "${pkgdir}/usr/lib/"{gtk-2.0,gtk-3.0,qt}
+ rm -r "${pkgdir}/usr/lib/fcitx/qt"
+ rm -r "${pkgdir}/usr/include/fcitx-qt"
+ rm "${pkgdir}/usr/bin/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')
+ depends=('gtk2' "fcitx>=$pkgver")
install=fcitx-gtk2.install
- cd "${srcdir}"/build/src/frontend/gtk2
+ cd "${srcdir}/build/src/frontend/gtk2"
make DESTDIR="${pkgdir}" install
}
package_fcitx-gtk3() {
pkgdesc='GTK3 IM Module for fcitx'
- depends=('gtk3' 'fcitx')
+ depends=('gtk3' "fcitx>=$pkgver")
install=fcitx-gtk3.install
- cd "${srcdir}"/build/src/frontend/gtk3
+ cd "${srcdir}/build/src/frontend/gtk3"
make DESTDIR="${pkgdir}" install
}
package_fcitx-qt() {
pkgdesc='QT IM Module for fcitx'
- depends=('qt' 'fcitx')
+ depends=('qt' "fcitx>=$pkgver")
- cd "${srcdir}"/build/src/frontend/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
}
+
+md5sums=('6e291717c24615b9dc9bfaa2949af3a7')
Modified: fcitx.install
===================================================================
--- fcitx.install 2013-01-26 01:59:56 UTC (rev 82944)
+++ fcitx.install 2013-01-26 02:08:39 UTC (rev 82945)
@@ -1,13 +1,14 @@
-post_install() {
+post_upgrade() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
update-desktop-database -q
update-mime-database usr/share/mime &> /dev/null
}
-post_upgrade() {
- post_install
+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."
+ post_upgrade
}
post_remove() {
- post_install
+ post_upgrade
}
More information about the arch-commits
mailing list