1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
5 _commit=c7618f4f5728e1634417e9d02ea50d82b71956ab
7 pkgdesc="Bopomofo input for rime"
9 url="https://github.com/rime/rime-bopomofo"
11 # Rime will regenerate yaml&prism bin, which makes terra-pinyin required on runtime (for translator)
12 # rime-cangjie is dependency for reverse lookup
13 depends=('rime-cangjie' 'rime-terra-pinyin')
14 makedepends=('librime' 'rime-prelude' 'rime-essay')
15 source=("https://github.com/rime/rime-bopomofo/archive/$_commit/rime-bopomofo-$_commit.tar.gz")
16 sha512sums=('106a2897ac409b12e5a9aee35bed31e6bd76e4c2cb5caed5d201e03891b316fe42e279c72e5a3b06fe575ea2e897903986fcab9401933b7dfc4d47064be01bce')
21 for _f in $(pacman -Qql rime-prelude rime-essay rime-terra-pinyin | grep -v "/$"); do ln -sf $_f; done
26 for _s in $(ls *.schema.yaml); do rime_deployer --compile $_s; done
31 find . -type l -delete
32 rm build/terra_pinyin.*
34 install -Dm644 *.yaml -t "$pkgdir"/usr/share/rime-data/
35 install -Dm644 build/* -t "$pkgdir"/usr/share/rime-data/build/