# Contributor: Feng Shu <tumashu@163.com>

_realname=rime-stroke
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20250923
_commit=3a4b0f4013e2b4c14b1e80c92b1d4723eb65f39c
pkgrel=1
pkgdesc="Stroke input for rime"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
url="https://github.com/rime/rime-stroke"
license=('LGPL')
# dependency for reverse lookup
depends=("${MINGW_PACKAGE_PREFIX}-rime-luna-pinyin")
source=("https://github.com/rime/rime-stroke/archive/$_commit/rime-stroke-$_commit.tar.gz")
sha512sums=('8578896613094817e11da5a025eebea3010280a3b732b070d8c7af756aa9e1df4367d90b2867d1989d743f7a1efd4f35c1bca5d62fcbd18b156bd3e15546910e')

package() {
  cd rime-stroke-$_commit
  install -Dm644 *.yaml -t "${pkgdir}"${MINGW_PREFIX}/share/rime-data/
}
