Skip to content

Commit 9340dc6

Browse files
committed
New package: fcitx5-lotus-3.6.0
1 parent 33835bb commit 9340dc6

3 files changed

Lines changed: 81 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: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Template file for 'fcitx5-lotus'
2+
pkgname=fcitx5-lotus
3+
version=3.6.0
4+
revision=1
5+
_bamboo_commit="0daa4e21776c79a974898afd45528d9c698fbbc8"
6+
build_style=cmake
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 librsvg-utils"
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"
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+
https://github.com/LotusInputMethod/bamboo-core/archive/${_bamboo_commit}.tar.gz>bamboo-core-${_bamboo_commit}.tar.gz"
18+
checksum="785b785854b12a6bcb321194829c25578df6f48f9a2732b4216183bd8938c609
19+
2806ce1f822f942ffaad2f7085fcba37091a0221d3dc5c54609d437c30f01d2f"
20+
skip_extraction="bamboo-core-${_bamboo_commit}.tar.gz"
21+
system_accounts="_uinput_proxy"
22+
_uinput_proxy_groups="input"
23+
24+
if [ "$XBPS_CHECK_PKGS" ]; then
25+
configure_args+=" -DBUILD_TESTING=ON"
26+
fi
27+
28+
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
29+
# Tests fail on musl: https://github.com/golang/go/issues/13492
30+
make_check=no
31+
fi
32+
33+
export CGO_ENABLED=1
34+
case "${XBPS_TARGET_MACHINE}" in
35+
aarch64*) export GOARCH=arm64 ;;
36+
armv5*) export GOARCH=arm; export GOARM=5 ;;
37+
armv6*) export GOARCH=arm; export GOARM=6 ;;
38+
armv7*) export GOARCH=arm; export GOARM=7 ;;
39+
i686*) export GOARCH=386 ;;
40+
x86_64*) export GOARCH=amd64 ;;
41+
ppc64le*) export GOARCH=ppc64le ;;
42+
ppc64*) export GOARCH=ppc64 ;;
43+
ppc*) export GOARCH=ppc ;;
44+
mipsel*) export GOARCH=mipsle ;;
45+
mips*) export GOARCH=mips ;;
46+
riscv64*) export GOARCH=riscv64 ;;
47+
*) broken="Unsupported architecture ${XBPS_TARGET_MACHINE}" ;;
48+
esac
49+
50+
post_extract() {
51+
vsrcextract -C bamboo/bamboo-core "bamboo-core-${_bamboo_commit}.tar.gz"
52+
}
53+
54+
post_install() {
55+
vdoc ${FILESDIR}/README.voidlinux
56+
}
57+
58+
fcitx5-lotus-settings_package() {
59+
short_desc+=" - Settings"
60+
depends="${sourcepkg}>=${version}_${revision} python3 python3-QtPy
61+
python3-pyqt6 python3-dbus python3-pyqt6-widgets python3-pyqt6-gui"
62+
pycompile_dirs="usr/share/${sourcepkg}/settings-gui"
63+
python_version=3
64+
pkg_install() {
65+
vmove usr/bin/fcitx5-lotus-settings
66+
vmove usr/share/fcitx5-lotus/settings-gui
67+
vmove usr/share/applications/org.fcitx.Fcitx5.Addon.Lotus.Settings.desktop
68+
}
69+
}

0 commit comments

Comments
 (0)