[arch-commits] Commit in fcitx-libpinyin/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Aug 24 15:50:16 UTC 2017


    Date: Thursday, August 24, 2017 @ 15:50:15
  Author: felixonmars
Revision: 253305

upgpkg: fcitx-libpinyin 0.5.1-5

Modified:
  fcitx-libpinyin/trunk/PKGBUILD

----------+
 PKGBUILD |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-24 15:45:14 UTC (rev 253304)
+++ PKGBUILD	2017-08-24 15:50:15 UTC (rev 253305)
@@ -5,7 +5,7 @@
 pkgname=fcitx-libpinyin
 pkgver=0.5.1
 _model=model.text.20161206.tar.gz
-pkgrel=4
+pkgrel=5
 pkgdesc="Fcitx Wrapper for libpinyin, Library to deal with pinyin"
 arch=('i686' 'x86_64')
 url="https://github.com/fcitx/fcitx-libpinyin"
@@ -20,6 +20,8 @@
 prepare() {
   mkdir build
   ln -s "$srcdir"/$pkgname-$_model fcitx-libpinyin-$pkgver/data/$_model
+
+  sed -i 's/pinyin_guess_candidates(m_inst, pinyinOffset());/pinyin_guess_candidates(m_inst, pinyinOffset(), SORT_BY_PHRASE_LENGTH_AND_FREQUENCY);/' fcitx-libpinyin-$pkgver/src/eim.cpp
 }
 
 build() {



More information about the arch-commits mailing list