ibus-taigikeyboard

LOW
maintainer flyin1501 0 votes base taigikeyboard scanned 2026-09-25 09:11:17.574095
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Kisaragi Hiu <mail@kisaragi-hiu.com>
2
3pkgbase=taigikeyboard
4pkgname=(fcitx5-taigikeyboard ibus-taigikeyboard taigikeyboard-common)
5pkgver=3.6.10
6_tag="desktop-${pkgver}"
7pkgrel=2
8arch=('x86_64')
9url="https://taigikeyboard.tw"
10license=('Apache-2.0')
11depends=(
12 'libgcc' 'glibc'
13 'hicolor-icon-theme' # to allow putting our icons in there
14 'glib2' 'gtk4' 'pango' 'libadwaita'
15)
16optdepends=(
17 'ttf-jf-openhuninn: font with more support for Taigi'
18 'ttf-iansui-git: font with more support for Taigi'
19)
20makedepends=(
21 'make'
22 'cargo'
23 'pkgconf'
24 'protobuf-c'
25 'cmake'
26 'extra-cmake-modules'
27 'fcitx5'
28)
29source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/taigikeyboard/taigikeyboard/archive/refs/tags/${_tag}.tar.gz")
30sha512sums=('c98ba4034218ffccc24698a613f309c3677a604747fa7f187de6e09bda83d064514fc945a939bd63825b13ab981815a5c706def286ad528982276271bc320519')
31# Unbundling libsqlite3-sys while using LTO for C still leads to errors. Disable
32# it instead.
33options=(!lto)
34
35build() {
36 # The way some protobuf stuff is included ends up putting references to the
37 # home and $srcdir paths into the executables and shared libraries.
38 # Work around that and fix makepkg's warning about this.
39 RUSTFLAGS="--remap-path-prefix $HOME=~/ $RUSTFLAGS"
40 RUSTFLAGS="--remap-path-prefix ${srcdir}/${pkgbase}-${_tag}=${pkgbase} $RUSTFLAGS"
41 cd "${pkgbase}-${_tag}/linux"
42 make build
43 make component
44 make build-fcitx5
45}
46
47# split from the original amalgamation that installs all of them all at once
48# installing an ibus input method should not pull in fcitx5 itself or the
49# corresponding fcitx5 input method, and vice versa
50# fonts are not installed, this pulls from the aur instead
51package_taigikeyboard-common() {
52 pkgdesc='Common files for Taigi Keyboard'
53 optdepends=()
54 cd "${pkgbase}-${_tag}/linux"
55 install -d "$pkgdir"/usr/share/taigikeyboard/dictionaries
56 install -m644 \
57 ../dictionaries/dictionary.fst ../dictionaries/dictionary.bin ../dictionaries/association.bin ../dictionaries/syllables.fst \
58 "$pkgdir"/usr/share/taigikeyboard/dictionaries/
59 for size in 16 22 24 32 48 64 128 256; do
60 install -Dm644 \
61 data/icons/hicolor/"$size"x"$size"/apps/taigikeyboard.png \
62 "$pkgdir"/usr/share/icons/hicolor/"$size"x"$size"/apps/taigikeyboard.png
63 done
64 install -Dm755 target/release/taigikeyboard-settings "$pkgdir"/usr/bin/taigikeyboard-settings
65 install -Dm644 data/tw.taigikeyboard.Settings.desktop "$pkgdir"/usr/share/applications/tw.taigikeyboard.Settings.desktop
66}
67
68package_ibus-taigikeyboard() {
69 pkgdesc='Taigi input method for IBus'
70 depends=('ibus' 'taigikeyboard-common')
71 cd "${pkgbase}-${_tag}/linux"
72 install -Dm755 target/release/ibus-engine-taigikeyboard "$pkgdir"/usr/lib/ibus/ibus-engine-taigikeyboard
73 install -Dm644 target/taigikeyboard.xml "$pkgdir"/usr/share/ibus/component/taigikeyboard.xml
74}
75
76package_fcitx5-taigikeyboard() {
77 pkgdesc='Taigi input method for Fcitx5'
78 depends=('fcitx5' 'taigikeyboard-common')
79 # I don't think it is necessary to list libtaigikeyboard.so in provided=
80 # since fcitx5-rime doesn't do it either
81 cd "${pkgbase}-${_tag}/linux"
82 DESTDIR="$pkgdir" cmake --install target/fcitx5-build
83}
84

Scan history

Scanned at (UTC)SeverityRules
2026-09-25 09:11:17 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion