archrelease: copy trunk to community-any
[ArchLinux/community.git] / rime-wugniu / trunk / PKGBUILD
blobd11ae8a375bc2790e0aaa785e1a844af9138cade
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=rime-wugniu
4 pkgver=0.0.0.20190120
5 _commit=abd1ee98efbf170258fcf43875c21a4259e00b61
6 pkgrel=1
7 pkgdesc="Wugniu input for rime"
8 arch=('x86_64')
9 url="https://github.com/rime/rime-wugniu"
10 license=('LGPL')
11 # dependency for reverse lookup
12 depends=('rime-luna-pinyin')
13 makedepends=('librime' 'rime-prelude' 'rime-essay')
14 source=("https://github.com/rime/rime-wugniu/archive/$_commit/rime-wugniu-$_commit.tar.gz")
15 sha512sums=('257d4bd8d62dda5bce4beb39879fc46b4981590ce16d347ad3e2441f1b9bacabfe3772d8e0cf134a4a70b7dd5490e6bb6b6526e0e45d58d22730217e23407095')
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/