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-breeze
1 change: 1 addition & 0 deletions srcpkgs/fcitx5-lotus-settings
3 changes: 3 additions & 0 deletions srcpkgs/fcitx5-lotus/INSTALL.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This package does not automatically install the service into /etc/sv. Run:
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. Run:
rm -f /var/service/fcitx5-lotus.*
rm -rf /etc/sv/fcitx5-lotus.*
70 changes: 70 additions & 0 deletions srcpkgs/fcitx5-lotus/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Template file for 'fcitx5-lotus'
pkgname=fcitx5-lotus
version=3.5.10
revision=1
_bamboo_commit="30e8457584ff36767e9de40161728c004b1281b0"
archs="~*-musl"
build_style=cmake
configure_args="-DLOTUS_UINPUT_PROXY_USER=_uinput_proxy -DINSTALL_RUNIT=ON -DRUNIT_SV_DIR=/usr/share/examples/sv -DLOTUS_BYTECOMPILE_PYTHON=OFF"
hostmakedepends="extra-cmake-modules pkgconf gettext go librsvg-utils"
makedepends="libfcitx5-devel libinput-devel eudev-libudev-devel"
depends="fcitx5 acl-progs"
short_desc="Fcitx5 - Vietnamese IME"
maintainer="Coolllyn <leanhduc673@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/LotusInputMethod/fcitx5-lotus"
changelog="https://github.com/LotusInputMethod/fcitx5-lotus/releases"
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="ab68fe48e0e7caf0d88d6f3be1f9e2f5d98d769222ec1fc0dc07892a85d13a57
916fd2a26552cb0320d673c85d9ca5f13859f43e0847622935b6db32737c6f83"
skip_extraction="bamboo-core-${_bamboo_commit}.tar.gz"
system_accounts="_uinput_proxy"
_uinput_proxy_groups="input"

if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DBUILD_TESTING=ON"
fi

export CGO_ENABLED=1
case "${XBPS_TARGET_MACHINE}" in
aarch64*) export GOARCH=arm64 ;;
armv5*) export GOARCH=arm; export GOARM=5 ;;
armv6*) export GOARCH=arm; export GOARM=6 ;;
armv7*) export GOARCH=arm; export GOARM=7 ;;
i686*) export GOARCH=386 ;;
x86_64*) export GOARCH=amd64 ;;
ppc64le*) export GOARCH=ppc64le ;;
ppc64*) export GOARCH=ppc64 ;;
ppc*) export GOARCH=ppc ;;
mipsel*) export GOARCH=mipsle ;;
mips*) export GOARCH=mips ;;
riscv64*) export GOARCH=riscv64 ;;
*) broken="Unsupported architecture ${XBPS_TARGET_MACHINE}" ;;
esac

post_extract() {
vsrcextract -C bamboo/bamboo-core "bamboo-core-${_bamboo_commit}.tar.gz"
}

fcitx5-lotus-settings_package() {
short_desc+=" - Settings"
depends="${sourcepkg}>=${version}_${revision} python3 python3-QtPy
python3-pyqt6 python3-dbus python3-pyqt6-widgets python3-pyqt6-gui"
pycompile_dirs="usr/share/${pkgname}/settings-gui"
python_version=3
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
}
}

fcitx5-lotus-breeze_package() {
short_desc+=" - Breeze icons"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/icons/breeze
vmove usr/share/icons/breeze-dark
}
}