summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoelacanthus2020-05-21 04:22:26 +0800
committerCoelacanthus2020-05-21 04:22:26 +0800
commit2577c503f25cd09d4e611bcddf863d06f28a9db2 (patch)
tree9df5f9c3075e282b6472588fc2ff50089bfbba1a
downloadaur-2577c503f25cd09d4e611bcddf863d06f28a9db2.tar.gz
init
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD34
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3b0632cdab2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = rime-aurora-pinyin
+ pkgdesc = 【极光拼音】输入方案
+ pkgver = 0.0.0.20200521
+ pkgrel = 1
+ url = https://github.com/hosxy/rime-aurora-pinyin
+ arch = x86_64
+ license = LGPL
+ makedepends = librime
+ makedepends = rime-prelude
+ makedepends = rime-essay-simp
+ depends = rime-stroke
+ source = https://github.com/hosxy/rime-aurora-pinyin/archive/aad1a1eff80a65a64f3eb570b89a5cc46014d8c1/rime-aurora-pinyin-aad1a1eff80a65a64f3eb570b89a5cc46014d8c1.tar.gz
+ sha512sums = 78db30cf9b26abe5fe422006cfdc09b906ff43a757d52ceb76099275f0c51663c04bca26764abf48d254ef50baa1c23fbb7ba62e6236687981162842318f3ed7
+
+pkgname = rime-aurora-pinyin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fd13f7e2060
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Coelacanthus <liuhongwu2003@outlook.com>
+
+pkgname=rime-aurora-pinyin
+pkgver=0.0.0.20200521
+_commit=aad1a1eff80a65a64f3eb570b89a5cc46014d8c1
+pkgrel=1
+pkgdesc="【极光拼音】输入方案"
+arch=('x86_64')
+url="https://github.com/hosxy/rime-aurora-pinyin"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-stroke')
+makedepends=('librime' 'rime-prelude' 'rime-essay-simp')
+source=("https://github.com/hosxy/rime-aurora-pinyin/archive/$_commit/rime-aurora-pinyin-$_commit.tar.gz")
+sha512sums=('78db30cf9b26abe5fe422006cfdc09b906ff43a757d52ceb76099275f0c51663c04bca26764abf48d254ef50baa1c23fbb7ba62e6236687981162842318f3ed7')
+
+prepare() {
+ cd $pkgname-$_commit
+ # Link essentials
+ for _f in $(pacman -Qql rime-prelude rime-essay-simp | 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/
+}