# Template file for 'fcitx5' pkgname=fcitx5 version=5.0.8 revision=1 build_style=cmake build_helper=qemu configure_args=" -DCMAKE_INSTALL_LIBDATADIR=/usr/lib${XBPS_TARGET_WORDSIZE} -DUSE_SYSTEMD=OFF" hostmakedepends="cldr-emoji-annotation pkg-config gettext doxygen extra-cmake-modules xkeyboard-config wayland-devel" makedepends="fmt-devel expat-devel iso-codes enchant2-devel libxkbfile-devel dbus-devel pango-devel glib-devel libevent-devel xcb-util-wm-devel xcb-util-keysyms-devel xcb-util-devel xcb-imdkit-devel libxkbcommon-devel wayland-devel wayland-protocols gdk-pixbuf-devel json-c-devel" depends="fcitx5-icons" short_desc="Flexible Context-aware Input Tool with eXtension - v5" maintainer="Đoàn Trần Công Danh " license="LGPL-2.1-or-later" homepage="https://fcitx-im.org/wiki/Fcitx" _en_dict_ver=20121020 distfiles="https://download.fcitx-im.org/fcitx5/fcitx5/fcitx5-${version}.tar.xz https://download.fcitx-im.org/data/en_dict-${_en_dict_ver}.tar.gz" checksum="0ecf6cc763952ff3cbe6bd47d6e40f3f7987a4973547251af3cd1482f33c516f c44a5d7847925eea9e4d2d04748d442cd28dd9299a0b572ef7d91eac4f5a6ceb" skip_extraction=en_dict-${_en_dict_ver}.tar.gz lib32disabled=yes # Warning: do NOT enable backtrace for musl, do NOT add libexecinfo-devel post_extract() { local _distdir=${XBPS_SRCDISTDIR}/${pkgname}-${version} cp ${_distdir}/en_dict-${_en_dict_ver}.tar.gz src/modules/spell/dict } post_install() { sed -i '/prefix=/!s,/usr,${exec_prefix},' \ "${DESTDIR}/usr/lib/pkgconfig"/*.pc sed -i '/INTERFACE_INCLUDE_DIRECTORIES/s,"/usr,"${_IMPORT_PREFIX},' \ "${DESTDIR}/usr/lib/cmake"/*/*Targets.cmake } fcitx5-icons_package() { short_desc+=" - icons" conflicts="fcitx<=4.2.9.8_3" pkg_install() { vmove usr/share/icons } } libfcitx5_package() { short_desc+=" - libraries" lib32disabled=yes pkg_install() { vmove "usr/lib/*.so.*" } } libfcitx5-devel_package() { depends="libfcitx5>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/cmake vmove usr/lib/pkgconfig vmove "usr/lib/*.so" } }