app-i18n/fcitx-vinput: add arm64 support
Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
e919fd41e9
commit
95b9722a55
2 files changed
+24
-2
No files matched your search
@@ -1,2 +1,3 @@
|
||||
DIST fcitx5-vinput-2.4.2.tar.gz 3247910 BLAKE2B 429736319e4f5c829242ffdb1bcfe1b32c23fe41884efb83e59969c0fe8c5b5f5806cf6374d7a0fdc994ccc993bb8dc91c9f946af47bcf81fc8324a99f31e429 SHA512 1c9046204f7f5a866d1240ef3621517a21a7d81889f09e3499e32736dd2d701805ab4afd3b92c7c2558cbaa96faed39ef2269c44e03a04357b72da046745cf88
|
||||
DIST sherpa-onnx-v1.13.8-linux-aarch64-shared-cpu.tar.bz2 28091778 BLAKE2B f92720f07b3184271a32190f6ffaf4a67e5ab8a246dd948699b264f15e61e256c1a6f35a821fbbba146a181c35121f3a6a57398d96ce03f0335d73695a4889b1 SHA512 56ac6f0ba6f82019ded642dab8826a7ae70665ab334cf4fe883fabeaa74aebb2efe6b3bd5c5a29bee5047cc131815a4af2bf480d58dbb22b79e69aa949af5992
|
||||
DIST sherpa-onnx-v1.13.8-linux-x64-shared-no-tts.tar.bz2 24802494 BLAKE2B 6ea8440368e3c89a848d76dea4befb4e7e1a9a04eb6d0517373575508ae072ce1b7a8bf75e53b612604cc4a6c806a7ff98c058994ce3e15ee7d41a3f23566895 SHA512 815c1ee1246c682f5f4828b52397af6f4c1a9db97b232afce33a8200d5f2ac89502f8650213313649ac8996e06f11308765ed19d8d8f38b62a34ea42a8cb14fe
|
||||
@@ -20,6 +20,9 @@ HOMEPAGE="https://github.com/xifan2333/fcitx5-vinput"
|
||||
SRC_URI="
|
||||
https://github.com/xifan2333/${MY_PN}/releases/download/v${PV}/${MY_P}.tar.gz
|
||||
https://github.com/k2-fsa/sherpa-onnx/releases/download/v${SHERPA_PV}/sherpa-onnx-v${SHERPA_PV}-linux-x64-shared-no-tts.tar.bz2
|
||||
arm64? (
|
||||
https://github.com/k2-fsa/sherpa-onnx/releases/download/v${SHERPA_PV}/sherpa-onnx-v${SHERPA_PV}-linux-aarch64-shared-cpu.tar.bz2
|
||||
)
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
@@ -27,7 +30,7 @@ S="${WORKDIR}/${MY_P}"
|
||||
# and the silero VAD model (data/vad/silero_vad.onnx): MIT.
|
||||
LICENSE="GPL-3 Apache-2.0 MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="systemd"
|
||||
|
||||
# Bundled prebuilt sherpa-onnx/onnxruntime shared libraries.
|
||||
@@ -63,8 +66,26 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.3.9-sdbus-provider.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# The aarch64 sherpa-onnx build ships no headers. Like upstream's
|
||||
# scripts/build-sherpa-onnx.sh, take them from the x64 build.
|
||||
if use arm64; then
|
||||
mv "${WORKDIR}"/sherpa-onnx-v${SHERPA_PV}-linux-x64-shared-no-tts/include \
|
||||
"${WORKDIR}"/sherpa-onnx-v${SHERPA_PV}-linux-aarch64-shared-cpu/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local sherpa_dir="${WORKDIR}/sherpa-onnx-v${SHERPA_PV}-linux-x64-shared-no-tts"
|
||||
# Upstream picks a different sherpa-onnx build per arch, see
|
||||
# scripts/sherpa-onnx-vars.sh.
|
||||
local sherpa_dir="${WORKDIR}/sherpa-onnx-v${SHERPA_PV}-linux-"
|
||||
if use arm64; then
|
||||
sherpa_dir+="aarch64-shared-cpu"
|
||||
else
|
||||
sherpa_dir+="x64-shared-no-tts"
|
||||
fi
|
||||
|
||||
# Without a systemd profile, build sd-bus against libelogind instead.
|
||||
local sdbus_provider=libelogind
|
||||
|
||||
Reference in new issue
Block a user