Skip to content

Commit 4bd6658

Browse files
committed
New package: fcitx5-lotus-4.0.0
1 parent 33835bb commit 4bd6658

3 files changed

Lines changed: 74 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: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Template file for 'fcitx5-lotus'
2+
pkgname=fcitx5-lotus
3+
version=4.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 go librsvg-utils"
8+
makedepends="libfcitx5-devel libinput-devel eudev-libudev-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="be342f8d2e6047691b8020ede56ded8a5e1cdec1546cc07abc7c7d590d47d4c6"
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+
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
25+
# Tests fail on musl: https://github.com/golang/go/issues/13492
26+
make_check=no
27+
fi
28+
29+
export CGO_ENABLED=1
30+
case "${XBPS_TARGET_MACHINE}" in
31+
aarch64*) export GOARCH=arm64 ;;
32+
armv5*) export GOARCH=arm; export GOARM=5 ;;
33+
armv6*) export GOARCH=arm; export GOARM=6 ;;
34+
armv7*) export GOARCH=arm; export GOARM=7 ;;
35+
i686*) export GOARCH=386 ;;
36+
x86_64*) export GOARCH=amd64 ;;
37+
ppc64le*) export GOARCH=ppc64le ;;
38+
ppc64*) export GOARCH=ppc64 ;;
39+
ppc*) export GOARCH=ppc ;;
40+
mipsel*) export GOARCH=mipsle ;;
41+
mips*) export GOARCH=mips ;;
42+
riscv64*) export GOARCH=riscv64 ;;
43+
*) broken="Unsupported architecture ${XBPS_TARGET_MACHINE}" ;;
44+
esac
45+
46+
post_install() {
47+
vlicense bamboo/bamboo-core/LICENSE BAMBOO_CORE_LICENSE.txt
48+
vdoc ${FILESDIR}/README.voidlinux
49+
}
50+
51+
fcitx5-lotus-settings_package() {
52+
short_desc+=" - Settings"
53+
depends="${sourcepkg}>=${version}_${revision} python3 python3-QtPy
54+
python3-pyqt6 python3-dbus python3-pyqt6-widgets python3-pyqt6-gui"
55+
pycompile_dirs="usr/share/${sourcepkg}/settings-gui"
56+
python_version=3
57+
pkg_install() {
58+
vmove usr/bin/fcitx5-lotus-settings
59+
vmove usr/share/fcitx5-lotus/settings-gui
60+
vmove usr/share/applications/org.fcitx.Fcitx5.Addon.Lotus.Settings.desktop
61+
}
62+
}

0 commit comments

Comments
 (0)