[arch-commits] Commit in rime-cangjie/repos/community-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Mar 14 17:27:21 UTC 2020
Date: Saturday, March 14, 2020 @ 17:27:20
Author: felixonmars
Revision: 597013
archrelease: copy trunk to community-x86_64
Added:
rime-cangjie/repos/community-x86_64/PKGBUILD
(from rev 597012, rime-cangjie/trunk/PKGBUILD)
Deleted:
rime-cangjie/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 80 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 41 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-14 17:27:12 UTC (rev 597012)
+++ PKGBUILD 2020-03-14 17:27:20 UTC (rev 597013)
@@ -1,39 +0,0 @@
-# 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/
-}
Copied: rime-cangjie/repos/community-x86_64/PKGBUILD (from rev 597012, rime-cangjie/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-14 17:27:20 UTC (rev 597013)
@@ -0,0 +1,41 @@
+# 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/
+}
More information about the arch-commits
mailing list