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

Felix Yan felixonmars at archlinux.org
Tue Sep 8 15:29:32 UTC 2020


    Date: Tuesday, September 8, 2020 @ 15:29:31
  Author: felixonmars
Revision: 701254

archrelease: copy trunk to community-x86_64

Added:
  rime-wubi/repos/community-x86_64/PKGBUILD
    (from rev 701253, rime-wubi/trunk/PKGBUILD)
Deleted:
  rime-wubi/repos/community-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-08 15:29:23 UTC (rev 701253)
+++ PKGBUILD	2020-09-08 15:29:31 UTC (rev 701254)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=rime-wubi
-pkgver=0.0.0.20190120
-_commit=dd052ee158a38cb791755318b1aef9b4a3ed0316
-pkgrel=1
-pkgdesc="Wubi input for rime"
-arch=('x86_64')
-url="https://github.com/rime/rime-wubi"
-license=('LGPL')
-# dependency for reverse lookup
-depends=('rime-pinyin-simp')
-makedepends=('librime' 'rime-prelude' 'rime-essay')
-source=("https://github.com/rime/rime-wubi/archive/$_commit/rime-wubi-$_commit.tar.gz")
-sha512sums=('7da0b3ba0fdce2b0f71a07d8f8b6b31986ebd6ebd86ab1fdaeadc0693a39fa7a00b950477e42c51164dcde02617debef3d7db0be97482d7d9402e614dafc1302')
-
-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-wubi/repos/community-x86_64/PKGBUILD (from rev 701253, rime-wubi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-08 15:29:31 UTC (rev 701254)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-wubi
+pkgver=0.0.0.20200908
+_commit=f1876f08f1d4a9696395be0070c0e8e4353c44cb
+pkgrel=1
+pkgdesc="Wubi input for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-wubi"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-pinyin-simp')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-wubi/archive/$_commit/rime-wubi-$_commit.tar.gz")
+sha512sums=('bc7dac4c11f062640c61556078d0847b5033a105a5f8b15a26a487e16cb323e9b4cf38d34c33f453b85537ee8314adf1a20e136422c12598b7af63d2c9533d7e')
+
+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