[arch-commits] Commit in rime-cangjie/repos/community-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Oct 30 20:13:19 UTC 2020
Date: Friday, October 30, 2020 @ 20:13:19
Author: felixonmars
Revision: 737016
archrelease: copy trunk to community-x86_64
Added:
rime-cangjie/repos/community-x86_64/PKGBUILD
(from rev 737015, rime-cangjie/trunk/PKGBUILD)
Deleted:
rime-cangjie/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 75 +++++++++++++++++++++++++++----------------------------------
1 file changed, 34 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-10-30 20:13:10 UTC (rev 737015)
+++ PKGBUILD 2020-10-30 20:13:19 UTC (rev 737016)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=rime-cangjie
-pkgver=0.0.0.20190120
-_commit=5fd8ce6f64039e505ca02655a621f2e830b97c19
-pkgrel=2
-pkgdesc="Cangjie input for rime"
-arch=('x86_64')
-url="https://github.com/rime/rime-cangjie"
-license=('LGPL')
-# dependency for reverse lookup
-depends=('rime-luna-pinyin')
-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/
-}
Copied: rime-cangjie/repos/community-x86_64/PKGBUILD (from rev 737015, rime-cangjie/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-10-30 20:13:19 UTC (rev 737016)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-cangjie
+pkgver=0.0.0.20201030
+_commit=d0f6f521ec049166ada29085434126be175f6439
+pkgrel=1
+pkgdesc="Cangjie input for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-cangjie"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-luna-pinyin')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-cangjie/archive/$_commit/rime-cangjie-$_commit.tar.gz")
+sha512sums=('1cc2a98fd5d9dc506221679423442c548a5085ece22c0f33473e97558f1c3c943f5400d50c4c62598a3f608a7b65508f2d4855dd3ad5fe1735da1468c8f0ef42')
+
+prepare() {
+ cd $pkgname-$_commit
+ # Link essentials
+ for _f in $(pacman -Qql rime-prelude rime-essay | grep -v "/$"); do ln -sf $_f; done
+}
+
+build(){
+ cd $pkgname-$_commit
+ for _s in $(ls *.schema.yaml); do rime_deployer --compile $_s; done
+}
+
+package() {
+ cd $pkgname-$_commit
+ find . -type l -delete
+ 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