summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4574d1ed16f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = rime-middle-chinese-git
+ pkgdesc = 中古漢語(切韻音系)全拼及三拼
+ pkgver = 0.1
+ pkgrel = 1
+ url = https://github.com/biopolyhedron/rime-middle-chinese
+ arch = x86_64
+ license = custom
+ makedepends = librime
+ makedepends = rime-prelude
+ makedepends = rime-essay
+ depends = rime-luna-pinyin
+ source = rime-middle-chinese-git::git+https://github.com/biopolyhedron/rime-middle-chinese
+ sha512sums = SKIP
+
+pkgname = rime-middle-chinese-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..efad252dcac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: ZjeuhPiung <sophgn@outlook.com>
+pkgname=rime-middle-chinese-git
+pkgver=0.1
+pkgrel=1
+pkgdesc="中古漢語(切韻音系)全拼及三拼"
+arch=('x86_64')
+url='https://github.com/biopolyhedron/rime-middle-chinese'
+source=("$pkgname::git+$url")
+license=(custom)
+depends=('rime-luna-pinyin')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+sha512sums=('SKIP')
+
+prepare() {
+ cd $pkgname
+ for _f in $(pacman -Qql rime-prelude rime-essay rime-luna-pinyin | grep -v "/$"); do ln -sf $_f; done
+}
+
+build() {
+ cd $pkgname
+ for _s in $(ls *.schema.yaml); do rime_deployer --compile $_s; done
+}
+
+package() {
+ cd $pkgname
+ find . -type l -delete
+ rm build/luna*
+ rm build/*.txt
+ install -Dm644 *.yaml -t "$pkgdir"/usr/share/rime-data/
+ install -Dm644 build/* -t "$pkgdir"/usr/share/rime-data/build/
+}