Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions srcpkgs/fcitx5-lotus-settings
4 changes: 4 additions & 0 deletions srcpkgs/fcitx5-lotus/INSTALL.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This package installs the service differently from upstream.
DO NOT follow upstream's runit service activation method. Run instead:
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)
3 changes: 3 additions & 0 deletions srcpkgs/fcitx5-lotus/REMOVE.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manually created service files were not removed by xbps. Clean up with:
rm -f /var/service/fcitx5-lotus.*
rm -rf /etc/sv/fcitx5-lotus.*
49 changes: 49 additions & 0 deletions srcpkgs/fcitx5-lotus/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Template file for 'fcitx5-lotus'
pkgname=fcitx5-lotus
version=3.5.5
revision=1
_bamboo_commit="ff9054c288309999cf2fc6efbcda8c87f89fe0e0"
build_style=cmake
configure_args="-DLOTUS_UINPUT_PROXY_USER=_uinput_proxy -DINSTALL_RUNIT=ON -DRUNIT_SV_DIR=/usr/share/examples/sv"
hostmakedepends="extra-cmake-modules pkg-config gettext go python3 librsvg-utils"
makedepends="libfcitx5-devel libinput-devel eudev-libudev-devel acl-devel libX11-devel"
depends="fcitx5 acl acl-progs"
short_desc="Vietnamese input method for fcitx5"
maintainer="Leanhduc <leanhduc673@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/LotusInputMethod/fcitx5-lotus"
distfiles="https://github.com/LotusInputMethod/fcitx5-lotus/archive/refs/tags/v${version}.tar.gz>fcitx5-lotus-${version}.tar.gz
https://github.com/LotusInputMethod/bamboo-core/archive/${_bamboo_commit}.tar.gz>bamboo-core-${_bamboo_commit}.tar.gz"
checksum="e68efc38699f4292349557079325591f0c613e0ffa19943e975beaeac5323dc6 8fa4449a67ad9465f4a8c30f67b8878cb543fb7b30759d1e9a95c9392768563f"
skip_extraction="bamboo-core-${_bamboo_commit}.tar.gz"

system_accounts="_uinput_proxy"
_uinput_proxy_groups="input"

post_extract() {
Comment thread
Leanhduc-linux marked this conversation as resolved.
mkdir -p bamboo/bamboo-core
vsrcextract -C bamboo/bamboo-core "bamboo-core-${_bamboo_commit}.tar.gz"
}

pre_build() {
export CGO_ENABLED=1
if [ "$CROSS_BUILD" ]; then
case "$XBPS_TARGET_MACHINE" in
aarch64*) export GOARCH=arm64 ;;
armv6l*) export GOARCH=arm; export GOARM=6 ;;
armv7l*) export GOARCH=arm; export GOARM=7 ;;
i686*) export GOARCH=386 ;;
x86_64*) export GOARCH=amd64 ;;
esac
fi
}

fcitx5-lotus-settings_package() {
short_desc+=" - GUI settings"
depends="fcitx5-lotus python3 python3-QtPy python3-pyqt6 python3-dbus python3-pyqt6-widgets python3-pyqt6-gui qt6-wayland"
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
}
}