archrelease: copy trunk to community-any
[ArchLinux/community.git] / rime-pinyin-simp / trunk / PKGBUILD
blob4bde0d2d1ab0241759fa6eb6bb9c687fe8c9ab69
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=rime-pinyin-simp
4 pkgver=0.0.0.20230104
5 _commit=52b9c75f085479799553f2499c4f4c611d618cdf
6 pkgrel=1
7 pkgdesc="Simple pinyin input for rime"
8 arch=('x86_64')
9 url="https://github.com/rime/rime-pinyin-simp"
10 license=('LGPL')
11 # dependency for reverse lookup
12 depends=('rime-stroke')
13 makedepends=('librime' 'rime-prelude' 'rime-essay')
14 source=("https://github.com/rime/rime-pinyin-simp/archive/$_commit/rime-pinyin-simp-$_commit.tar.gz")
15 sha512sums=('4b89f9f3edd79b1220b77731eac99cf90c3496a8a09bc816ba0a40eaaae8743bd817d908492aa9ffde768b65d24a488cda558a8c8c7aa355754909420be2eead')
17 prepare() {
18   cd $pkgname-$_commit
19   # Link essentials
20   for _f in $(pacman -Qql rime-prelude rime-essay | grep -v "/$"); do ln -sf $_f; done
23 build(){
24   cd $pkgname-$_commit
25   for _s in $(ls *.schema.yaml); do rime_deployer --compile $_s; done
28 package() {
29   cd $pkgname-$_commit
30   find . -type l -delete
31   rm build/*.txt
32   install -Dm644 *.yaml -t "$pkgdir"/usr/share/rime-data/
33   install -Dm644 build/* -t "$pkgdir"/usr/share/rime-data/build/