[arch-commits] Commit in rime-wugniu/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Mar 15 12:30:18 UTC 2020


    Date: Sunday, March 15, 2020 @ 12:30:18
  Author: felixonmars
Revision: 597935

use a better way to compile schemas

Modified:
  rime-wugniu/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-15 12:29:57 UTC (rev 597934)
+++ PKGBUILD	2020-03-15 12:30:18 UTC (rev 597935)
@@ -18,24 +18,17 @@
   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 .
+  for _s in $(ls *.schema.yaml); do rime_deployer --compile $_s; done
 }
 
 package() {
   cd $pkgname-$_commit
   find . -type l -delete
-  rm {,build/}default.yaml user.yaml
+  rm build/*.txt
   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