void-packages/srcpkgs/fcitx/template

85 lines
2.2 KiB
Bash
Raw Normal View History

2014-12-12 00:10:20 +00:00
# Template file for 'fcitx'
pkgname=fcitx
2015-04-10 11:47:15 +00:00
version="4.2.8.6"
2015-08-05 11:00:00 +00:00
revision=2
2014-12-12 00:10:20 +00:00
build_style=cmake
short_desc="Flexible Context-aware Input Tool with eXtension"
maintainer="Robert La Spina <rkidlaspina@gmail.com>"
license="GPL-2, LGPL-2.1"
2014-12-12 00:10:20 +00:00
homepage="https://fcitx-im.org/"
distfiles="http://download.fcitx-im.org/fcitx/fcitx-${version}_dict.tar.xz"
2015-04-10 11:47:15 +00:00
checksum="91034e9ef976bbe2649a96b67adf0c133d64e2c0d53be440cc40a4370569d597"
hostmakedepends="cmake pkg-config doxygen gobject-introspection"
2015-08-05 11:00:00 +00:00
makedepends="iso-codes gettext-devel enchant-devel libxml2-devel
libxkbfile-devel icu55-devel qt-devel dbus-devel gtk+-devel gtk+3-devel"
2014-12-12 00:10:20 +00:00
lib32disabled=yes
2015-08-05 11:00:00 +00:00
configure_args="-DSYSCONFDIR=/etc -DFORCE_OPENCC=OFF -DFORCE_PRESAGE=OFF
-DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DENABLE_QT_IM_MODULE=ON
-DFORCE_ENCHANT=ON"
2014-12-12 00:10:20 +00:00
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} glib-devel"
2014-12-12 00:10:20 +00:00
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/bin/fcitx4-config
2014-12-12 00:10:20 +00:00
vmove usr/include/fcitx
vmove usr/lib/pkgconfig/fcitx.pc
vmove usr/lib/libfcitx-core.so
vmove usr/share/gir-1.0
vmove usr/share/cmake
2014-12-12 00:10:20 +00:00
}
}
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"
depends="fcitx-${version}_${revision} qt-devel"
2014-12-12 00:10:20 +00:00
pkg_install() {
vmove usr/include/fcitx-qt
2014-12-12 00:10:20 +00:00
vmove usr/lib/libfcitx-qt.so
vmove usr/lib/pkgconfig/fcitx-qt.pc
}
}