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