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

_realname=rime-double-pinyin
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20190120
_commit=69bf85d4dfe8bac139c36abbd68d530b8b6622ea
pkgrel=1
pkgdesc="Double-pinyin input for rime (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
license=('LGPL')
# dependency for reverse lookup: rime-stroke
# dependency on dictionary: rime-luna-pinyin
depends=("${MINGW_PACKAGE_PREFIX}-rime-luna-pinyin"
         "${MINGW_PACKAGE_PREFIX}-rime-stroke")
url="https://github.com/rime/rime-double-pinyin"
source=("https://github.com/rime/rime-double-pinyin/archive/$_commit/rime-double-pinyin-$_commit.tar.gz")
sha512sums=('2ab98a7b804b2fa3d0a59fd0b9a8b79316caa3a2da070766359d550d1d56edf85d55874044409780a2a21d729a2a7e834fdcf9419eb0d34252acbdef304a5c40')

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