[arch-commits] Commit in rime-bopomofo/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Mar 15 12:22:22 UTC 2020
Date: Sunday, March 15, 2020 @ 12:22:21
Author: felixonmars
Revision: 597911
use a better way to compile schemas
Modified:
rime-bopomofo/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-15 12:22:11 UTC (rev 597910)
+++ PKGBUILD 2020-03-15 12:22:21 UTC (rev 597911)
@@ -19,24 +19,18 @@
cd $pkgname-$_commit
# Link essentials
for _f in $(pacman -Qql rime-prelude rime-essay rime-terra-pinyin | 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 build/terra_pinyin.*
+ rm build/terra_pinyin.*
+ 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