abinfo "Linking rime-prelude and rime-essay configure file..."
ln -sfv /usr/share/rime-data/default.yaml
ln -sfv /usr/share/rime-data/key_bindings.yaml
ln -sfv /usr/share/rime-data/punctuation.yaml
ln -sfv /usr/share/rime-data/symbols.yaml
ln -sfv /usr/share/rime-data/essay.txt

abinfo "Building schema..."
for _s in $(ls "$SRCDIR"/*.schema.yaml); do rime_deployer --compile $_s; done

abinfo "Installing schema to $PKGDIR..."
find . -type l -delete
rm build/*.txt
install -Dm644 *.yaml -t "$PKGDIR"/usr/share/rime-data/
install -Dm644 build/* -t "$PKGDIR"/usr/share/rime-data/build/

