Skip to content

Commit 89af4df

Browse files
committed
New package: fcitx5-lotus-5.0.1
1 parent 8627c5f commit 89af4df

3 files changed

Lines changed: 58 additions & 0 deletions

File tree

‎srcpkgs/fcitx5-lotus-settings‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fcitx5-lotus
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
fcitx5-lotus - Service Management
2+
3+
This package does not automatically install the runit service into /etc/sv.
4+
5+
To enable the service for your current user:
6+
cp -r /usr/share/examples/sv/fcitx5-lotus /etc/sv/fcitx5-lotus.$(whoami)
7+
ln -s /etc/sv/fcitx5-lotus.$(whoami) /var/service/fcitx5-lotus.$(whoami)
8+
9+
To remove the service:
10+
rm -f /var/service/fcitx5-lotus.*
11+
rm -rf /etc/sv/fcitx5-lotus.*

‎srcpkgs/fcitx5-lotus/template‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

Comments
 (0)