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

Felix Yan felixonmars at archlinux.org
Fri Apr 10 15:31:54 UTC 2020


    Date: Friday, April 10, 2020 @ 15:31:53
  Author: felixonmars
Revision: 613116

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-10 15:31:43 UTC (rev 613115)
+++ PKGBUILD	2020-04-10 15:31:53 UTC (rev 613116)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=rime-luna-pinyin
-pkgver=0.0.0.20200207
-_commit=ac5c02bd35e6d4d6eed1e1a03f7192919ae649bb
-pkgrel=2
-pkgdesc="Luna pinyin for rime"
-arch=('x86_64')
-url="https://github.com/rime/rime-luna-pinyin"
-license=('LGPL')
-# dependency for reverse lookup
-depends=('rime-stroke')
-makedepends=('librime' 'rime-prelude' 'rime-essay')
-source=("https://github.com/rime/rime-luna-pinyin/archive/$_commit/rime-luna-pinyin-$_commit.tar.gz")
-sha512sums=('fa85433d2b9cf31f9b98a71528e2cdc3e188cce27a6c14087db0ce77c78b8872d05ed9bf792a142e6e06a0cb293f4abe9bbd51b322071db9da22f77190a68ada')
-
-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-luna-pinyin/repos/community-x86_64/PKGBUILD (from rev 613115, rime-luna-pinyin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-10 15:31:53 UTC (rev 613116)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=rime-luna-pinyin
+pkgver=0.0.0.20200410
+_commit=f1268e192ca88b9526467ce04ac3e47c837891ad
+pkgrel=1
+pkgdesc="Luna pinyin for rime"
+arch=('x86_64')
+url="https://github.com/rime/rime-luna-pinyin"
+license=('LGPL')
+# dependency for reverse lookup
+depends=('rime-stroke')
+makedepends=('librime' 'rime-prelude' 'rime-essay')
+source=("https://github.com/rime/rime-luna-pinyin/archive/$_commit/rime-luna-pinyin-$_commit.tar.gz")
+sha512sums=('5a4f91f04f807ba84650a52acf8f634382c32eb978e8895f97b05594ea90cf6771386bb80cda1b694905c50d64cf8b4e8514abb762c4d18035b73c67148339f9')
+
+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