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