1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=rime-terra-pinyin
5 _commit=9427853de91d645d9aca9ceace8fe9e9d8bc5b50
7 pkgdesc="Terra pinyin for rime"
9 url="https://github.com/rime/rime-terra-pinyin"
11 # dependency for reverse lookup
12 depends=('rime-stroke')
13 makedepends=('git' 'librime' 'rime-prelude' 'rime-essay')
14 source=("git+https://github.com/rime/rime-terra-pinyin.git#commit=$_commit")
20 for _f in $(pacman -Qql rime-prelude rime-essay | grep -v "/$"); do ln -sf $_f; done
25 for _s in $(ls *.schema.yaml); do rime_deployer --compile $_s; done
30 find . -type l -delete
32 install -Dm644 *.yaml -t "$pkgdir"/usr/share/rime-data/
33 install -Dm644 build/* -t "$pkgdir"/usr/share/rime-data/build/