Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/disabled/rime-luna-pinyin-bootstrap/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-06-11 08:00:59 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-06-11 08:00:59 +0200
commit0b77067179e2e7f4d543166c32f1dc997319f375 (patch)
tree1ee268c9d6a92e8c0193454abc6a894f0b782345 /build-support/disabled/rime-luna-pinyin-bootstrap/PKGBUILD
parent53f3994156678e3210cabed01c38cc14dafac5b6 (diff)
disabled rime-luna-pinyin-bootstrap in build-support
Diffstat (limited to 'build-support/disabled/rime-luna-pinyin-bootstrap/PKGBUILD')
-rw-r--r--build-support/disabled/rime-luna-pinyin-bootstrap/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/build-support/disabled/rime-luna-pinyin-bootstrap/PKGBUILD b/build-support/disabled/rime-luna-pinyin-bootstrap/PKGBUILD
new file mode 100644
index 00000000..0f663756
--- /dev/null
+++ b/build-support/disabled/rime-luna-pinyin-bootstrap/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+
+pkgname=rime-luna-pinyin-bootstrap
+_pkgname=${pkgname%-*}
+pkgver='0.0.0.20210303'
+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/
+}