From 69b34ac4ce8697859e9d8c807be765fd53618742 Mon Sep 17 00:00:00 2001 From: Coolllyn Date: Sun, 11 Oct 2026 06:23:27 +0700 Subject: [PATCH] New package: fcitx5-lotus-5.0.1 --- srcpkgs/fcitx5-lotus-settings | 1 + srcpkgs/fcitx5-lotus/files/README.voidlinux | 11 +++++ srcpkgs/fcitx5-lotus/template | 46 +++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 120000 srcpkgs/fcitx5-lotus-settings create mode 100644 srcpkgs/fcitx5-lotus/files/README.voidlinux create mode 100644 srcpkgs/fcitx5-lotus/template diff --git a/srcpkgs/fcitx5-lotus-settings b/srcpkgs/fcitx5-lotus-settings new file mode 120000 index 00000000000000..25e1883bfc4528 --- /dev/null +++ b/srcpkgs/fcitx5-lotus-settings @@ -0,0 +1 @@ +fcitx5-lotus \ No newline at end of file diff --git a/srcpkgs/fcitx5-lotus/files/README.voidlinux b/srcpkgs/fcitx5-lotus/files/README.voidlinux new file mode 100644 index 00000000000000..918b1977991698 --- /dev/null +++ b/srcpkgs/fcitx5-lotus/files/README.voidlinux @@ -0,0 +1,11 @@ +fcitx5-lotus - Service Management + +This package does not automatically install the runit service into /etc/sv. + +To enable the service for your current user: + cp -r /usr/share/examples/sv/fcitx5-lotus /etc/sv/fcitx5-lotus.$(whoami) + ln -s /etc/sv/fcitx5-lotus.$(whoami) /var/service/fcitx5-lotus.$(whoami) + +To remove the service: + rm -f /var/service/fcitx5-lotus.* + rm -rf /etc/sv/fcitx5-lotus.* diff --git a/srcpkgs/fcitx5-lotus/template b/srcpkgs/fcitx5-lotus/template new file mode 100644 index 00000000000000..2d9622d6f2d607 --- /dev/null +++ b/srcpkgs/fcitx5-lotus/template @@ -0,0 +1,46 @@ +# Template file for 'fcitx5-lotus' +pkgname=fcitx5-lotus +version=5.0.1 +revision=1 +build_style=cmake +build_helper=go +configure_args="-DLOTUS_UINPUT_PROXY_USER=_uinput_proxy -DINSTALL_RUNIT=ON -DRUNIT_SV_DIR=/usr/share/examples/sv -DLOTUS_BYTECOMPILE_PYTHON=OFF" +hostmakedepends="extra-cmake-modules pkgconf gettext go" +makedepends="libfcitx5-devel libinput-devel eudev-libudev-devel" +depends="fcitx5 acl-progs" +short_desc="Fcitx5 - Vietnamese IME" +maintainer="Coolllyn " +license="GPL-3.0-or-later AND MIT" +homepage="https://github.com/LotusInputMethod/fcitx5-lotus" +changelog="https://github.com/LotusInputMethod/fcitx5-lotus/releases" +distfiles="https://github.com/LotusInputMethod/fcitx5-lotus/archive/refs/tags/v${version}.tar.gz>fcitx5-lotus-${version}.tar.gz" +checksum="6999b34540c3a477290b424f7a34a34e935450c61ed4cb1942028dc87f0fdf02" +system_accounts="_uinput_proxy" +_uinput_proxy_groups="input" + +if [ "$XBPS_CHECK_PKGS" ]; then + configure_args+=" -DBUILD_TESTING=ON" +fi + +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + # Tests fail on musl: https://github.com/golang/go/issues/13492 + make_check=no +fi + +post_install() { + vlicense bamboo/bamboo-core/LICENSE bamboo-core.LICENSE + vdoc ${FILESDIR}/README.voidlinux +} + +fcitx5-lotus-settings_package() { + short_desc+=" - Settings" + depends="${sourcepkg}>=${version}_${revision} python3 python3-QtPy + python3-pyqt6 python3-dbus python3-pyqt6-widgets python3-pyqt6-gui" + pycompile_dirs="usr/share/${sourcepkg}/settings-gui" + python_version=3 + pkg_install() { + vmove usr/bin/fcitx5-lotus-settings + vmove usr/share/fcitx5-lotus/settings-gui + vmove usr/share/applications/org.fcitx.Fcitx5.Addon.Lotus.Settings.desktop + } +}