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

Felix Yan felixonmars at archlinux.org
Sun Mar 15 12:28:16 UTC 2020


    Date: Sunday, March 15, 2020 @ 12:28:15
  Author: felixonmars
Revision: 597925

use a better way to compile schemas

Modified:
  rime-luna-pinyin/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-15 12:27:46 UTC (rev 597924)
+++ PKGBUILD	2020-03-15 12:28:15 UTC (rev 597925)
@@ -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