diff --git a/common/shlibs b/common/shlibs index 94b64c2cf9d..a0d50ae5fa8 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1864,3 +1864,8 @@ libespeak.so.1 libespeak-1.48.04_1 libpgf.so.6 libpgf-6.14.12_1 libqhull_p.so.6 libqhull-2012.1_1 libqhull.so.6 libqhull-2012.1_1 +libfcitx-core.so.0 libfcitx-4.2.8_1 +libfcitx-gclient.so.0 libfcitx-4.2.8_1 +libfcitx-utils.so.0 libfcitx-4.2.8_1 +libfcitx-config.so.4 libfcitx-4.2.8_1 +libfcitx-qt.so.0 libfcitx-qt-4.2.8_1 diff --git a/srcpkgs/fcitx-devel b/srcpkgs/fcitx-devel new file mode 120000 index 00000000000..421114c67a2 --- /dev/null +++ b/srcpkgs/fcitx-devel @@ -0,0 +1 @@ +fcitx \ No newline at end of file diff --git a/srcpkgs/fcitx/template b/srcpkgs/fcitx/template new file mode 100644 index 00000000000..59ae2cd4eaa --- /dev/null +++ b/srcpkgs/fcitx/template @@ -0,0 +1,84 @@ +# Template file for 'fcitx' + +pkgname=fcitx +version="4.2.8.5" +revision=1 +build_style=cmake +short_desc="Flexible Context-aware Input Tool with eXtension" +maintainer="Robert La Spina " +license="GPL-2 LGPL-2.1" +homepage="https://fcitx-im.org/" +distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}_dict.tar.xz" +checksum="fe3d6f57805fc61130f8254f19a86fe3baa0f405406414ca2e94bcf86d3d1b72" +hostmakedepends="cmake pkg-config enchant-devel libxml2-devel iso-codes libxkbfile-devel icu-devel doxygen qt-devel cairo-devel dbus-devel gobject-introspection pango-devel gtk+-devel gtk+3-devel" +lib32disabled=yes + +configure_args+=" -DSYSCONFDIR=/etc \ +-DFORCE_OPENCC=OFF \ +-DFORCE_PRESAGE=OFF \ +-DFORCE_ENCHANT=ON \ +-DENABLE_GTK2_IM_MODULE=ON \ +-DENABLE_GTK3_IM_MODULE=ON \ +-DENABLE_QT_IM_MODULE=ON" + +libfcitx_package() { + short_desc+=" - shared libraries" + pkg_install() { + for i in config core gclient utils; do + vmove "usr/lib/libfcitx-${i}.so.*" + done + vmove "usr/lib/fcitx/fcitx-*.so" + for i in comp-spell-dict fcitx-{po-parser,scanner}; do + vmove usr/lib/fcitx/libexec/${i} + done + vmove usr/lib/girepository-1.0 + } +} + +fcitx-devel_package() { + depends="libfcitx-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + for i in config gclient utils; do + vmove usr/include/fcitx-${i} + vmove usr/lib/pkgconfig/fcitx-${i}.pc + vmove usr/lib/libfcitx-${i}.so + done + vmove usr/include/fcitx + vmove usr/lib/pkgconfig/fcitx.pc + vmove usr/lib/libfcitx-core.so + vmove usr/share/gir-1.0 + } +} + +libfcitx-gtk_package() { + short_desc+=" - GTK2 IM module" + pkg_install() { + vmove usr/lib/gtk-2.0 + } +} + +libfcitx-gtk3_package() { + short_desc+=" - GTK3 IM module" + pkg_install() { + vmove usr/lib/gtk-3.0 + } +} + +libfcitx-qt_package() { + short_desc+=" - Qt4 IM module" + pkg_install() { + vmove "usr/lib/libfcitx-qt.so.*" + vmove usr/lib/fcitx/qt + vmove usr/lib/fcitx/libexec/fcitx-qt-gui-wrapper + vmove usr/lib/qt + } +} + +libfcitx-qt-devel_package() { + short_desc+=" - Qt4 IM module development files" + pkg_install() { + vmove usr/lib/libfcitx-qt.so + vmove usr/lib/pkgconfig/fcitx-qt.pc + } +} diff --git a/srcpkgs/libfcitx b/srcpkgs/libfcitx new file mode 120000 index 00000000000..421114c67a2 --- /dev/null +++ b/srcpkgs/libfcitx @@ -0,0 +1 @@ +fcitx \ No newline at end of file diff --git a/srcpkgs/libfcitx-gtk b/srcpkgs/libfcitx-gtk new file mode 120000 index 00000000000..421114c67a2 --- /dev/null +++ b/srcpkgs/libfcitx-gtk @@ -0,0 +1 @@ +fcitx \ No newline at end of file diff --git a/srcpkgs/libfcitx-gtk3 b/srcpkgs/libfcitx-gtk3 new file mode 120000 index 00000000000..421114c67a2 --- /dev/null +++ b/srcpkgs/libfcitx-gtk3 @@ -0,0 +1 @@ +fcitx \ No newline at end of file diff --git a/srcpkgs/libfcitx-qt b/srcpkgs/libfcitx-qt new file mode 120000 index 00000000000..421114c67a2 --- /dev/null +++ b/srcpkgs/libfcitx-qt @@ -0,0 +1 @@ +fcitx \ No newline at end of file diff --git a/srcpkgs/libfcitx-qt-devel b/srcpkgs/libfcitx-qt-devel new file mode 120000 index 00000000000..421114c67a2 --- /dev/null +++ b/srcpkgs/libfcitx-qt-devel @@ -0,0 +1 @@ +fcitx \ No newline at end of file