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

_realname=rime-essay
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20250712
_commit=b3b4a614bde0dddd309200caaa8cb8827a7459e5
pkgrel=1
pkgdesc="Essential files for building up your Rime configuration (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
url="https://github.com/rime/rime-essay"
license=('LGPL')
source=("https://github.com/rime/rime-essay/archive/${_commit}/rime-essay-${_commit}.tar.gz")
sha512sums=('03ba1c7a73605072a05fb2ff752d365acfd4199771b8bed17c3fcbabfabdb3f8db71662063370eb4349c588abd60571abe330fb690b009a510e001636fac81c9')

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