[arch-commits] Commit in rime-quick/repos (community-x86_64 community-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Mar 14 17:35:26 UTC 2020


    Date: Saturday, March 14, 2020 @ 17:35:26
  Author: felixonmars
Revision: 597035

archrelease: copy trunk to community-x86_64

Added:
  rime-quick/repos/community-x86_64/
  rime-quick/repos/community-x86_64/PKGBUILD
    (from rev 597034, rime-quick/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: rime-quick/repos/community-x86_64/PKGBUILD (from rev 597034, rime-quick/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-03-14 17:35:26 UTC (rev 597035)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-quick
+pkgver=0.0.0.20190120
+_commit=3fe5911ba608cb2df1b6301b76ad1573bd482a76
+pkgrel=1
+pkgdesc="Quick input for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-quick"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-luna-pinyin')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-quick/archive/$_commit/rime-quick-$_commit.tar.gz")
+sha512sums=('d693b90b76cf3dc72e84bb378e3b1a35850bed9edec45bfb321bf800561bd03fdf34ea41bc7ca8da53b02579de111da394a6aa4493989a4a4bde2eb0e2d7d485')
+
+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