From 3239056dcfbb567ad38795b5de17392666000cfd Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Fri, 24 Mar 2017 02:53:52 +0000 Subject: [PATCH] update sunpinyin --- fcitx-sunpinyin/PKGBUILD | 5 ++--- sunpinyin-data/PKGBUILD | 20 +++++++++----------- sunpinyin/PKGBUILD | 15 ++++++++------- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/fcitx-sunpinyin/PKGBUILD b/fcitx-sunpinyin/PKGBUILD index 08d647d85..96c578545 100644 --- a/fcitx-sunpinyin/PKGBUILD +++ b/fcitx-sunpinyin/PKGBUILD @@ -5,18 +5,17 @@ # Contributor: csslayer # include global config -source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=fcitx-sunpinyin pkgver=0.4.1 -pkgrel=2 +pkgrel=3 pkgdesc="Fcitx Wrapper for sunpinyin." arch=('i686' 'x86_64') url="http://code.google.com/p/fcitx" license=('GPL') depends=('fcitx>=4.2.7' 'sunpinyin>=2.0.3' 'sunpinyin-data') makedepends=('cmake') -source=(http://download.fcitx-im.org/${pkgname}/${pkgname}-${pkgver}.tar.xz) +source=(https://download.fcitx-im.org/${pkgname}/${pkgname}-${pkgver}.tar.xz) build(){ cd "$srcdir/${pkgname}-${pkgver}" diff --git a/sunpinyin-data/PKGBUILD b/sunpinyin-data/PKGBUILD index d9b4f351f..e98db709e 100644 --- a/sunpinyin-data/PKGBUILD +++ b/sunpinyin-data/PKGBUILD @@ -3,22 +3,24 @@ # Contributor: Thomas Dziedzic < gostrc at gmail > pkgname=sunpinyin-data -pkgver=2.0.3.20131212 -_lm_sc_ver=20121025 -_dict_ver=20131212 +pkgver=2.0.3.20140820 +_lm_sc_ver=20140820 +_dict_ver=20131214 pkgrel=1 arch=('any') pkgdesc="Statistical language model data from open-gram project for sunpinyin" license=('APACHE') provides=("sunpinyin-data-le=$pkgver") url="http://sunpinyin.googlecode.com" -makedepends=("sunpinyin") -source=("http://open-gram.googlecode.com/files/lm_sc.t3g.arpa-${_lm_sc_ver}.tar.bz2" - "http://open-gram.googlecode.com/files/dict.utf8-${_dict_ver}.tar.bz2") +makedepends=('sunpinyin' 'git') +source=("http://downloads.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-${_lm_sc_ver}.tar.bz2" + "http://downloads.sourceforge.net/project/open-gram/dict.utf8-${_dict_ver}.tar.bz2") +sha512sums=('ea3ede62eb993c4d21ca7cf339635f4686493a0cefd57df4a31f00a001e67502a13ff9612ff667b941b82b47de00be9f3c9689677d04195a7ef8716bac087519' + 'adaf52a27c6afdeb950912845f3fcb7a6799f997d50a2892ceecf76ed13e3644407338d734832c2ce4b09bce11fec4731774f1eb2dd4c30bea5490555915bd5b') prepare() { mkdir raw && cd raw - ln -s ../lm_sc.t3g.arpa + ln -s ../lm_sc.3gm.arpa ln -s ../dict.utf8 ln -sf "/usr/share/doc/sunpinyin/SLM-inst.mk" ./Makefile @@ -34,7 +36,3 @@ package() { make DESTDIR="$pkgdir" install } -sha512sums=('3159dd3700382cfa617ba025ce542660580f3057e0dd6bbb92947902495db08e4454c1d09d01a55c90653444513d125dd034e944b060a9d8e009c3633b106d97' - 'adaf52a27c6afdeb950912845f3fcb7a6799f997d50a2892ceecf76ed13e3644407338d734832c2ce4b09bce11fec4731774f1eb2dd4c30bea5490555915bd5b') -sha512sums=('3159dd3700382cfa617ba025ce542660580f3057e0dd6bbb92947902495db08e4454c1d09d01a55c90653444513d125dd034e944b060a9d8e009c3633b106d97' - '3c90965ee389995a9a2801d489fb3f37ecf124d318a159a94145f6db348d7561dfa408dd148ab4eeae3ea466f83c1132558d4117bc6a01ca97cf89ce85ca9b99') diff --git a/sunpinyin/PKGBUILD b/sunpinyin/PKGBUILD index 4b6f36e1e..8a4259036 100644 --- a/sunpinyin/PKGBUILD +++ b/sunpinyin/PKGBUILD @@ -3,8 +3,8 @@ # Contributor: Thomas Dziedzic < gostrc at gmail > pkgname=sunpinyin -pkgver=2.0.3.20140804 -_commit=10ea46e8f7c3465d6e882c96b00618288c3f0532 +pkgver=3.0.0rc1 +_tag=v3.0.0-rc1 pkgrel=1 arch=('i686' 'x86_64') pkgdesc="Statistical Language Model based pinyin IME by Sun" @@ -14,23 +14,24 @@ depends=('sqlite3' 'make' 'gcc-libs') optdepends=('sunpinyin-data: Statistical language model data from open-gram project for sunpinyin') replaces=('sunpinyin-git<=20120603') makedepends=('git' 'scons' 'intltool') -source=("git://github.com/sunpinyin/sunpinyin.git#commit=$_commit") +source=("git://github.com/sunpinyin/sunpinyin.git#tag=$_tag") md5sums=("SKIP") +prepare() { + cd "$srcdir/$pkgname" + sed -i -e "1s|python|python2|" python/*.py python/importer/*.py +} + build() { cd "$srcdir/$pkgname" - sed -i -e "1s|python|python2|" python/*.py python/importer/*.py - scons \ --prefix=/usr } package() { cd "$srcdir/$pkgname" - scons \ --prefix=/usr \ --install-sandbox="$pkgdir" \ install } -