upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / rime-cangjie / trunk / PKGBUILD
blob1988d85ee814be00973bc7ba5dcb49885ffc5340
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=rime-cangjie
4 pkgver=0.0.0.20210223
5 _commit=8dfad9e537f18821b71ba28773315d9c670ae245
6 pkgrel=1
7 pkgdesc="Cangjie input for rime"
8 arch=('x86_64')
9 url="https://github.com/rime/rime-cangjie"
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-cangjie/archive/$_commit/rime-cangjie-$_commit.tar.gz")
15 sha512sums=('48e505227b13c03610fc5d0e25125b5b5aff73fa051bab2a8a408d08391f8416f3010154355d0a80cdc841825d362352bb85efd8fd4d038680c4c835b060ca0a')
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/