|
| 1 | +# Template file for 'fcitx5-lotus' |
| 2 | +pkgname=fcitx5-lotus |
| 3 | +version=6.0.0 |
| 4 | +revision=1 |
| 5 | +build_style=cmake |
| 6 | +configure_args="-DLOTUS_UINPUT_PROXY_USER=_uinput_proxy -DINSTALL_RUNIT=ON -DRUNIT_SV_DIR=/usr/share/examples/sv -DLOTUS_BYTECOMPILE_PYTHON=OFF" |
| 7 | +hostmakedepends="extra-cmake-modules pkgconf gettext" |
| 8 | +makedepends="libfcitx5-devel libinput-devel eudev-libudev-devel libevdev-devel libnotify-devel" |
| 9 | +depends="fcitx5 acl-progs" |
| 10 | +short_desc="Fcitx5 - Vietnamese IME" |
| 11 | +maintainer="Coolllyn <leanhduc673@gmail.com>" |
| 12 | +license="GPL-3.0-or-later AND MIT" |
| 13 | +homepage="https://github.com/LotusInputMethod/fcitx5-lotus" |
| 14 | +changelog="https://github.com/LotusInputMethod/fcitx5-lotus/releases" |
| 15 | +distfiles="https://github.com/LotusInputMethod/fcitx5-lotus/archive/refs/tags/v${version}.tar.gz>fcitx5-lotus-${version}.tar.gz" |
| 16 | +checksum="c08b1af2154ef4c4a67300d033d34b50b1b7fa1826af9dcb637414a57b6b1cd7" |
| 17 | +system_accounts="_uinput_proxy" |
| 18 | +_uinput_proxy_groups="input" |
| 19 | + |
| 20 | +if [ "$XBPS_CHECK_PKGS" ]; then |
| 21 | + configure_args+=" -DBUILD_TESTING=ON" |
| 22 | +fi |
| 23 | + |
| 24 | +post_install() { |
| 25 | + vlicense lotus/LICENSE.bamboo-core |
| 26 | + vdoc ${FILESDIR}/README.voidlinux |
| 27 | +} |
| 28 | + |
| 29 | +fcitx5-lotus-settings_package() { |
| 30 | + short_desc+=" - Settings" |
| 31 | + depends="${sourcepkg}>=${version}_${revision} python3 python3-QtPy |
| 32 | + python3-pyqt6 python3-dbus python3-pyqt6-widgets python3-pyqt6-gui" |
| 33 | + pycompile_dirs="usr/share/${sourcepkg}/settings-gui" |
| 34 | + python_version=3 |
| 35 | + pkg_install() { |
| 36 | + vmove usr/bin/fcitx5-lotus-settings |
| 37 | + vmove usr/share/fcitx5-lotus/settings-gui |
| 38 | + vmove usr/share/applications/org.fcitx.Fcitx5.Addon.Lotus.Settings.desktop |
| 39 | + } |
| 40 | +} |
0 commit comments