Skip to content

Commit e096c3e

Browse files
committed
New package: fcitx5-lotus-3.5.10
1 parent 954278b commit e096c3e

5 files changed

Lines changed: 78 additions & 0 deletions

File tree

‎srcpkgs/fcitx5-lotus-breeze‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fcitx5-lotus

‎srcpkgs/fcitx5-lotus-settings‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fcitx5-lotus

‎srcpkgs/fcitx5-lotus/INSTALL.msg‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This package does not automatically install the service into /etc/sv. Run:
2+
cp -r /usr/share/examples/sv/fcitx5-lotus /etc/sv/fcitx5-lotus.$(whoami)
3+
ln -s /etc/sv/fcitx5-lotus.$(whoami) /var/service/fcitx5-lotus.$(whoami)

‎srcpkgs/fcitx5-lotus/REMOVE.msg‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manually created service files were not removed by xbps. Run:
2+
rm -f /var/service/fcitx5-lotus.*
3+
rm -rf /etc/sv/fcitx5-lotus.*

‎srcpkgs/fcitx5-lotus/template‎

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Template file for 'fcitx5-lotus'
2+
pkgname=fcitx5-lotus
3+
version=3.5.10
4+
revision=1
5+
_bamboo_commit="30e8457584ff36767e9de40161728c004b1281b0"
6+
archs="~*-musl"
7+
build_style=cmake
8+
configure_args="-DLOTUS_UINPUT_PROXY_USER=_uinput_proxy -DINSTALL_RUNIT=ON -DRUNIT_SV_DIR=/usr/share/examples/sv -DLOTUS_BYTECOMPILE_PYTHON=OFF"
9+
hostmakedepends="extra-cmake-modules pkgconf gettext go librsvg-utils"
10+
makedepends="libfcitx5-devel libinput-devel eudev-libudev-devel"
11+
depends="fcitx5 acl-progs"
12+
short_desc="Fcitx5 - Vietnamese IME"
13+
maintainer="Coolllyn <leanhduc673@gmail.com>"
14+
license="GPL-3.0-or-later"
15+
homepage="https://github.com/LotusInputMethod/fcitx5-lotus"
16+
changelog="https://github.com/LotusInputMethod/fcitx5-lotus/releases"
17+
distfiles="https://github.com/LotusInputMethod/fcitx5-lotus/archive/refs/tags/v${version}.tar.gz>fcitx5-lotus-${version}.tar.gz
18+
https://github.com/LotusInputMethod/bamboo-core/archive/${_bamboo_commit}.tar.gz>bamboo-core-${_bamboo_commit}.tar.gz"
19+
checksum="ab68fe48e0e7caf0d88d6f3be1f9e2f5d98d769222ec1fc0dc07892a85d13a57
20+
916fd2a26552cb0320d673c85d9ca5f13859f43e0847622935b6db32737c6f83"
21+
skip_extraction="bamboo-core-${_bamboo_commit}.tar.gz"
22+
system_accounts="_uinput_proxy"
23+
_uinput_proxy_groups="input"
24+
25+
if [ "$XBPS_CHECK_PKGS" ]; then
26+
configure_args+=" -DBUILD_TESTING=ON"
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_extract() {
47+
vsrcextract -C bamboo/bamboo-core "bamboo-core-${_bamboo_commit}.tar.gz"
48+
}
49+
50+
fcitx5-lotus-settings_package() {
51+
short_desc+=" - Settings"
52+
depends="${sourcepkg}>=${version}_${revision} python3 python3-QtPy
53+
python3-pyqt6 python3-dbus python3-pyqt6-widgets python3-pyqt6-gui"
54+
pycompile_dirs="usr/share/${pkgname}/settings-gui"
55+
python_version=3
56+
pkg_install() {
57+
vmove usr/bin/fcitx5-lotus-settings
58+
vmove usr/share/fcitx5-lotus/settings-gui
59+
vmove usr/share/applications/org.fcitx.Fcitx5.Addon.Lotus.Settings.desktop
60+
}
61+
}
62+
63+
fcitx5-lotus-breeze_package() {
64+
short_desc+=" - Breeze icons"
65+
depends="${sourcepkg}>=${version}_${revision}"
66+
pkg_install() {
67+
vmove usr/share/icons/breeze
68+
vmove usr/share/icons/breeze-dark
69+
}
70+
}

0 commit comments

Comments
 (0)