[arch-commits] Commit in rime-pinyin-simp/repos/community-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Jun 17 17:01:44 UTC 2020
Date: Wednesday, June 17, 2020 @ 17:01:42
Author: felixonmars
Revision: 646379
archrelease: copy trunk to community-x86_64
Added:
rime-pinyin-simp/repos/community-x86_64/PKGBUILD
(from rev 646378, rime-pinyin-simp/trunk/PKGBUILD)
Deleted:
rime-pinyin-simp/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 75 +++++++++++++++++++++++++++----------------------------------
1 file changed, 34 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-17 17:01:31 UTC (rev 646378)
+++ PKGBUILD 2020-06-17 17:01:42 UTC (rev 646379)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=rime-pinyin-simp
-pkgver=0.0.0.20190120
-_commit=bb5a6dfa871669d2f451b477bfff6d131df6f6c6
-pkgrel=1
-pkgdesc="Simple pinyin input for rime"
-arch=('x86_64')
-url="https://github.com/rime/rime-pinyin-simp"
-license=('LGPL')
-# dependency for reverse lookup
-depends=('rime-stroke')
-makedepends=('librime' 'rime-prelude' 'rime-essay')
-source=("https://github.com/rime/rime-pinyin-simp/archive/$_commit/rime-pinyin-simp-$_commit.tar.gz")
-sha512sums=('9e3572632a013419bd4da72df1526c2ec8633b31db5006a351030b681838582daecdc0e7b6fef3d7802973235dbc2b6dd3c37a5185a664ea847f52363e905d0b')
-
-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-pinyin-simp/repos/community-x86_64/PKGBUILD (from rev 646378, rime-pinyin-simp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-06-17 17:01:42 UTC (rev 646379)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-pinyin-simp
+pkgver=0.0.0.20200617
+_commit=b73df7fc0994912ce785462b3be569ae81258ac2
+pkgrel=1
+pkgdesc="Simple pinyin input for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-pinyin-simp"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-stroke')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-pinyin-simp/archive/$_commit/rime-pinyin-simp-$_commit.tar.gz")
+sha512sums=('c18e4f3961099b5fd2e30160f5a9da1264e0ca8938edd42cdeebf68e5b8fe28e65fe7ea09a7e75bc5e09a87b62cfdffd8b7ce8329fae119ff15a167f68957867')
+
+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