Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/rime-luna-pinyin-bootstrap
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-04-24 17:33:41 +0200
committerErich Eckner <git@eckner.net>2020-04-24 17:33:41 +0200
commitf44b96b5bf90f81758bdd7ffeaa4cfb553da3a80 (patch)
tree8186ae649165e8251dbc7536945914306534d361 /build-support/rime-luna-pinyin-bootstrap
parent28aec8c0c77d81611da38d6de418ad390a84ab61 (diff)
build-support/rime-luna-pinyin-bootstrap new
Diffstat (limited to 'build-support/rime-luna-pinyin-bootstrap')
-rw-r--r--build-support/rime-luna-pinyin-bootstrap/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/build-support/rime-luna-pinyin-bootstrap/PKGBUILD b/build-support/rime-luna-pinyin-bootstrap/PKGBUILD
new file mode 100644
index 00000000..684430a8
--- /dev/null
+++ b/build-support/rime-luna-pinyin-bootstrap/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+
+pkgname=rime-luna-pinyin-bootstrap
+pkgver=0.0.0.20200410
+conflicts=(rime-luna-pinyin)
+provides=("rime-luna-pinyin=$pkgver")
+_commit=f1268e192ca88b9526467ce04ac3e47c837891ad
+pkgrel=1
+pkgdesc="Luna pinyin for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-luna-pinyin"
+license=('LGPL')
+# dependency for reverse lookup
+#depends=('rime-stroke')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-luna-pinyin/archive/$_commit/rime-luna-pinyin-$_commit.tar.gz")
+sha512sums=('5a4f91f04f807ba84650a52acf8f634382c32eb978e8895f97b05594ea90cf6771386bb80cda1b694905c50d64cf8b4e8514abb762c4d18035b73c67148339f9')
+
+prepare() {
+ cd $pkgname-$_commit
+ # Link essentials
+ for _f in $(pacman -Qql rime-prelude rime-essay | 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/
+}