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

_realname=rime-luna-pinyin
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20250805
_commit=46acf03142c12b5aeed7002675046bf7255eed35
pkgrel=1
pkgdesc='Luna pinyin for rime (mingw-w64)'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
license=('LGPL')
url="https://github.com/rime/rime-luna-pinyin"
source=("https://github.com/rime/rime-luna-pinyin/archive/${_commit}/rime-luna-pinyin-${_commit}.tar.gz")
sha512sums=('45a45c86977a21bb8b597375a5684fd7d112f0d31d297074d9b7963b5a010a001667b4d5d8ecd5c131f3d60e6fa5dc414f6eea6e32b9100b58461f30681074bd')

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