diff --git a/srcpkgs/fcitx5-anthy-icons b/srcpkgs/fcitx5-anthy-icons new file mode 120000 index 0000000000..6fee45a4d3 --- /dev/null +++ b/srcpkgs/fcitx5-anthy-icons @@ -0,0 +1 @@ +fcitx5-anthy \ No newline at end of file diff --git a/srcpkgs/fcitx5-anthy/patches/fix-build-musl.patch b/srcpkgs/fcitx5-anthy/patches/fix-build-musl.patch new file mode 100644 index 0000000000..bc19b7c5c4 --- /dev/null +++ b/srcpkgs/fcitx5-anthy/patches/fix-build-musl.patch @@ -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()); diff --git a/srcpkgs/fcitx5-anthy/template b/srcpkgs/fcitx5-anthy/template new file mode 100644 index 0000000000..d0f9ab1d73 --- /dev/null +++ b/srcpkgs/fcitx5-anthy/template @@ -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 " +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 + } +}