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

Felix Yan felixonmars at archlinux.org
Mon Mar 16 11:58:23 UTC 2020


    Date: Monday, March 16, 2020 @ 11:58:22
  Author: felixonmars
Revision: 599656

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 11:58:21 UTC (rev 599655)
+++ PKGBUILD	2020-03-16 11:58:22 UTC (rev 599656)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=rime-cantonese
-pkgver=0.0.0.20200309
-_commit=b1f17c5dc7c50dd9b86f39505e8927a697b4647d
-pkgrel=1
-pkgdesc="Cantonese input for rime"
-arch=('x86_64')
-url="https://github.com/rime/rime-cantonese"
-license=('LGPL')
-# dependency for reverse lookup
-depends=('rime-cangjie' 'rime-luna-pinyin' 'rime-stroke')
-makedepends=('librime' 'rime-prelude' 'rime-essay')
-source=("https://github.com/rime/rime-cantonese/archive/$_commit/rime-cantonese-$_commit.tar.gz")
-sha512sums=('7141f0c1d44b487b0528603e37448a3d4f9886f7137b2b9badef0714278b0165d6c2f15df11b99620267078e71b0390d32393207d31492de3c42d743d1a477ff')
-
-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-cantonese/repos/community-x86_64/PKGBUILD (from rev 599654, rime-cantonese/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-16 11:58:22 UTC (rev 599656)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-cantonese
+pkgver=0.0.0.20200316
+_commit=1a4d549cd6d8806206984cca8ddc359b9673687b
+pkgrel=1
+pkgdesc="Cantonese input for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-cantonese"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-cangjie' 'rime-luna-pinyin' 'rime-stroke')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-cantonese/archive/$_commit/rime-cantonese-$_commit.tar.gz")
+sha512sums=('746f90e91c5a113623646e1cbb63150dd35e6ed05cb72f84e4b06e6d812d932a4516e552c973f9ccbe15b3802b412ee4638797f92388eb0f9fc26d7c666a6eb7')
+
+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