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

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

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