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

_realname=rime-pinyin-simp
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20241229
_commit=0c6861ef7420ee780270ca6d993d18d4101049d0
pkgrel=1
pkgdesc="Simple pinyin input for rime (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
license=('LGPL')
# dependency for reverse lookup
depends=("${MINGW_PACKAGE_PREFIX}-rime-stroke")
url="https://github.com/rime/rime-pinyin-simp"
source=("https://github.com/rime/rime-pinyin-simp/archive/${_commit}/rime-pinyin-simp-${_commit}.tar.gz")
sha512sums=('215401d67dfc777475a3e46b066e07df53c3e8a783b9067e6b6cb25ff0fe8c23f03b2db18e86eb9fe0febeacbe9a89bb9073610f2ae3c90a5f33e27cebb3328f')

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