[arch-commits] Commit in rime-terra-pinyin/repos/community-x86_64 (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Sep 11 09:58:13 UTC 2020


    Date: Friday, September 11, 2020 @ 09:58:13
  Author: felixonmars
Revision: 702612

archrelease: copy trunk to community-x86_64

Added:
  rime-terra-pinyin/repos/community-x86_64/PKGBUILD
    (from rev 702611, rime-terra-pinyin/trunk/PKGBUILD)
Deleted:
  rime-terra-pinyin/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   75 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 34 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-11 09:58:02 UTC (rev 702611)
+++ PKGBUILD	2020-09-11 09:58:13 UTC (rev 702612)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=rime-terra-pinyin
-pkgver=0.0.0.20200207
-_commit=492aaf914f9de37cc9d26b846dc693116de70ae8
-pkgrel=2
-pkgdesc="Terra pinyin for rime"
-arch=('x86_64')
-url="https://github.com/rime/rime-terra-pinyin"
-license=('LGPL')
-# dependency for reverse lookup
-depends=('rime-stroke')
-makedepends=('librime' 'rime-prelude' 'rime-essay')
-source=("https://github.com/rime/rime-terra-pinyin/archive/$_commit/rime-terra-pinyin-$_commit.tar.gz")
-sha512sums=('d15b5a6de6b20c4f50392703c21dded69a985bf25f3d93ee213facfd59e1d5b30d32f0296c6a97ac1edbb5056877591fc1d7637f27f7d273bb7f69636c2b1353')
-
-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-terra-pinyin/repos/community-x86_64/PKGBUILD (from rev 702611, rime-terra-pinyin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-11 09:58:13 UTC (rev 702612)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-terra-pinyin
+pkgver=0.0.0.20200911
+_commit=850c2b0375a8b2f4a8149341cc83de3902e7f6c3
+pkgrel=1
+pkgdesc="Terra pinyin for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-terra-pinyin"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-stroke')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-terra-pinyin/archive/$_commit/rime-terra-pinyin-$_commit.tar.gz")
+sha512sums=('8fc1a7a98e38411f31275527a494a901a383b78d62dd6504ec8c406868565e7190089b090c1c7d49ef2a3f867a490610b4488dcfc8acdd45a18e6ba5ccf28222')
+
+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