# Template file for 'fcitx5' pkgname=fcitx5 version=5.1.0 revision=2 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="3305a077478fafb8d738059e4616b9a28b89e89baf505c9edb208daeb9ed4619 c44a5d7847925eea9e4d2d04748d442cd28dd9299a0b572ef7d91eac4f5a6ceb" skip_extraction=en_dict-${_en_dict_ver}.tar.gz lib32disabled=yes CXXFLAGS="-D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64" # 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/ } 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" } }