# Maintainer: Coelacanthus pkgname=rime-aurora-pinyin pkgver=0.0.0.20200921 _commit=962deee720b3757e40c958fbe7ca65fe3f497806 pkgrel=1 pkgdesc="【极光拼音】输入方案" arch=('any') url="https://github.com/hosxy/rime-aurora-pinyin" license=('LGPL') # dependency for reverse lookup depends=('rime-stroke') makedepends=('librime' 'rime-prelude') source=("https://github.com/hosxy/rime-aurora-pinyin/archive/$_commit/rime-aurora-pinyin-$_commit.tar.gz") sha512sums=('92615d60319fb8217eb1b21e5aa59024ee07762e4d69b1cf731cd3ee37829f7d6ef67a9abc3503db27128ddfe2a99cd9eacd67f550dc44aaddf4f8011778b5ed') prepare() { cd $pkgname-$_commit # Link essentials for _f in $(pacman -Qql rime-prelude | grep -v "/$"); do ln -sf $_f; done } build(){ cd $pkgname-$_commit for _s in $(ls *.schema.yaml); do rime_deployer --compile $_s; done } package() { cd $pkgname-$_commit 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/ }