[arch-commits] Commit in rime-cangjie/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Mar 14 12:52:10 UTC 2020
Date: Saturday, March 14, 2020 @ 12:52:09
Author: felixonmars
Revision: 596746
archrelease: copy trunk to community-x86_64
Added:
rime-cangjie/repos/community-x86_64/
rime-cangjie/repos/community-x86_64/PKGBUILD
(from rev 596745, rime-cangjie/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: rime-cangjie/repos/community-x86_64/PKGBUILD (from rev 596745, rime-cangjie/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-03-14 12:52:09 UTC (rev 596746)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-cangjie
+pkgver=0.0.0.20190120
+_commit=5fd8ce6f64039e505ca02655a621f2e830b97c19
+pkgrel=1
+pkgdesc="Cangjie input for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-cangjie"
+license=('LGPL')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-cangjie/archive/$_commit/rime-cangjie-$_commit.tar.gz")
+sha512sums=('fb6e396c18e2e17a1c42e95bf57ba621537220cf59327432131aedf9b0d55143bb4b5d669441cbb5591c955b2710db6205d04a98cf49d82a4c4fef7590671d59')
+
+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