[arch-commits] Commit in rime-wugniu/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Mar 15 01:44:49 UTC 2020
Date: Sunday, March 15, 2020 @ 01:44:49
Author: felixonmars
Revision: 597560
archrelease: copy trunk to community-x86_64
Added:
rime-wugniu/repos/community-x86_64/
rime-wugniu/repos/community-x86_64/PKGBUILD
(from rev 597559, rime-wugniu/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: rime-wugniu/repos/community-x86_64/PKGBUILD (from rev 597559, rime-wugniu/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-03-15 01:44:49 UTC (rev 597560)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-wugniu
+pkgver=0.0.0.20190120
+_commit=abd1ee98efbf170258fcf43875c21a4259e00b61
+pkgrel=1
+pkgdesc="Wugniu input for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-wugniu"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-luna-pinyin')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-wugniu/archive/$_commit/rime-wugniu-$_commit.tar.gz")
+sha512sums=('257d4bd8d62dda5bce4beb39879fc46b4981590ce16d347ad3e2441f1b9bacabfe3772d8e0cf134a4a70b7dd5490e6bb6b6526e0e45d58d22730217e23407095')
+
+prepare() {
+ cd $pkgname-$_commit
+ # Link essentials
+ for _f in $(pacman -Qql rime-prelude rime-essay | grep -v "/$"); do ln -sf $_f; done
+
+ # Build binaries only for this package
+ rm default.yaml
+ cp /usr/share/rime-data/default.yaml ./
+ sed -i -e '/- schema:/d' -e '/schema_list:/d' default.yaml
+ echo "schema_list:" >> default.yaml
+ ls *.schema.yaml | cut -d "." -f 1 | sed -e 's/\(.*\)/ - schema: \1/' >> default.yaml
+}
+
+build(){
+ cd $pkgname-$_commit
+ rime_deployer --build .
+}
+
+package() {
+ cd $pkgname-$_commit
+ find . -type l -delete
+ rm {,build/}default.yaml user.yaml
+ install -Dm644 *.yaml -t "$pkgdir"/usr/share/rime-data/
+ install -Dm644 build/* -t "$pkgdir"/usr/share/rime-data/build/
+}
More information about the arch-commits
mailing list