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

_realname=rime-stroke
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20191221
_commit=ea8576d1accd6fda339e96b415caadb56e2a07d1
pkgrel=1
pkgdesc="Stroke input for rime"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
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=('69487ff985de24ce366eccd0e2aa77fb6921df0588bd28b772fd0215e94a3fc71b97796307fa8d31fb44e27c2fb34da5910139c5d51f09b12259e75f38f45473')

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