mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
New package: fcitx5-anthy-5.0.5
This commit is contained in:
parent
f24b91c292
commit
1bb28d0d41
3 changed files with 42 additions and 0 deletions
1
srcpkgs/fcitx5-anthy-icons
Symbolic link
1
srcpkgs/fcitx5-anthy-icons
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
fcitx5-anthy
|
18
srcpkgs/fcitx5-anthy/patches/fix-build-musl.patch
Normal file
18
srcpkgs/fcitx5-anthy/patches/fix-build-musl.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
Index: fcitx5-anthy-5.0.4/src/utils.h
|
||||||
|
===================================================================
|
||||||
|
--- fcitx5-anthy-5.0.4.orig/src/utils.h
|
||||||
|
+++ fcitx5-anthy-5.0.4/src/utils.h
|
||||||
|
@@ -28,11 +28,11 @@ bool key_is_keypad(const fcitx::Key &key
|
||||||
|
std::string keypad_to_string(const fcitx::KeyEvent &key);
|
||||||
|
void launch_program(std::string command);
|
||||||
|
|
||||||
|
-bool surrounding_get_safe_delta(uint from, uint to, int32_t *delta);
|
||||||
|
+bool surrounding_get_safe_delta(unsigned from, unsigned to, int32_t *delta);
|
||||||
|
|
||||||
|
bool surrounding_get_anchor_pos_from_selection(
|
||||||
|
const std::string &surrounding_text, const std::string &selected_text,
|
||||||
|
- uint cursor_pos, uint *anchor_pos);
|
||||||
|
+ unsigned cursor_pos, unsigned *anchor_pos);
|
||||||
|
|
||||||
|
inline char get_ascii_code(const fcitx::Key &key) {
|
||||||
|
auto chr = fcitx::Key::keySymToUnicode(key.sym());
|
23
srcpkgs/fcitx5-anthy/template
Normal file
23
srcpkgs/fcitx5-anthy/template
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Template file for 'fcitx5-anthy'
|
||||||
|
pkgname=fcitx5-anthy
|
||||||
|
version=5.0.5
|
||||||
|
revision=1
|
||||||
|
build_style=cmake
|
||||||
|
hostmakedepends="pkg-config gettext extra-cmake-modules"
|
||||||
|
makedepends="anthy-unicode-devel libfcitx5-devel"
|
||||||
|
depends="fcitx5"
|
||||||
|
short_desc="Fcitx5 - Anthy engine"
|
||||||
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||||
|
license="GPL-2.0-or-later"
|
||||||
|
homepage="https://fcitx-im.org/wiki/Fcitx"
|
||||||
|
distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-anthy/fcitx5-anthy-${version}.tar.xz"
|
||||||
|
checksum=22364003e737cbe4ea6eaa83d9d274a8df8e38dea61d8f4576560ee7d5eaf44d
|
||||||
|
patch_args=-Np1
|
||||||
|
|
||||||
|
fcitx5-anthy-icons_package() {
|
||||||
|
short_desc+=" - icons"
|
||||||
|
conflicts="fcitx-anthy<=0.2.3_2"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/share/icons
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue