# Template file for 'fcitx5-zhuyin'
pkgname=fcitx5-zhuyin
version=5.1.7
revision=1
build_style=cmake
build_helper=qemu
hostmakedepends="pkg-config gettext doxygen extra-cmake-modules"
makedepends="libfcitx5-devel fmt-devel opencc-devel fcitx5-lua-devel
 libzhuyin-devel libpinyin-utils"
short_desc="Fcitx5 - zhuyin IME"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://fcitx-im.org/wiki/Fcitx"
_model_version=20241103
distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-zhuyin/fcitx5-zhuyin-${version}.tar.zst
 https://download.fcitx-im.org/data/model.text.${_model_version}.tar.zst"
checksum="14b056a2c01a01180718f799b2905b248e3f0e3ec15c8a4452fa8c13b95595f4
 bb4a9789b6e0fde1c6547f659ce591de5e691ee3a8345d3c1c74eaf92b31ea48"
skip_extraction="model.text.${_model_version}.tar.zst"
lib32disabled=yes
nocross=yes

post_extract() {
	vsrccopy $skip_extraction data
}
