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
48 changes: 48 additions & 0 deletions srcpkgs/fcitx5-lotus/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Template file for 'fcitx5-lotus'
pkgname=fcitx5-lotus
version=3.4.0
revision=1
_bamboo_commit="9197d2cc164380a80d219f12cc90576ff2fbf5e6"
build_style=cmake
configure_args="-DINSTALL_RUNIT=ON"
hostmakedepends="extra-cmake-modules pkg-config gettext go python3"
makedepends="libfcitx5-devel libinput-devel eudev-libudev-devel acl-devel libX11-devel"
depends="fcitx5 acl"
short_desc="Vietnamese input method engine for Fcitx5"
maintainer="Leanhduc <259352926+0353618151hao-png@users.noreply.github.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
https://github.com/LotusInputMethod/bamboo-core/archive/${_bamboo_commit}.tar.gz>bamboo-core-${_bamboo_commit}.tar.gz"
checksum="13161c5a4691009d85e0c649b07faaf198d3056de39961b2578e486dbcf4bff3 aa446dcebcda95feb384bf3caa98418dd553d54f138f25cad716472c387a1d90"
build_wrksrc="fcitx5-lotus-${version}"

system_accounts="_uinput_proxy"
_uinput_proxy_homedir="/var/empty"
_uinput_proxy_shell="/sbin/nologin"
_uinput_proxy_groups="input"

post_extract() {
mkdir -p "fcitx5-lotus-${version}/bamboo"
rm -rf "fcitx5-lotus-${version}/bamboo/bamboo-core"
mv "bamboo-core-${_bamboo_commit}" "fcitx5-lotus-${version}/bamboo/bamboo-core"
}

post_patch() {
vsed -i 's/uinput_proxy/_uinput_proxy/g' misc/fcitx5-lotus.runit misc/99-lotus.rules
}

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

post_install() {
rm -rf ${DESTDIR}/usr/lib/systemd
rm -f ${DESTDIR}/usr/lib/sysusers.d/lotus.conf
}