summaryrefslogtreecommitdiff
path: root/community/libpinyin
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-05 01:06:44 -0700
committerroot <root@rshg054.dnsready.net>2013-05-05 01:06:44 -0700
commit7a600dcabb6923ee79d36a4eaab2fc6867bdb807 (patch)
treebd75ff45c676ff5c7e8744686901ffdcecf6f7b1 /community/libpinyin
parent5f3b2100b811506bec6bcf63b24d1c605dfe8cb6 (diff)
Sun May 5 01:06:40 PDT 2013
Diffstat (limited to 'community/libpinyin')
-rw-r--r--community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch25
-rw-r--r--community/libpinyin/PKGBUILD16
2 files changed, 8 insertions, 33 deletions
diff --git a/community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch b/community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch
deleted file mode 100644
index c895adf4c..000000000
--- a/community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 00fec992f5c760f546a1db933fb08325fc9cccbf Mon Sep 17 00:00:00 2001
-From: Peng Wu <alexepico@gmail.com>
-Date: Sat, 23 Mar 2013 09:52:46 +0800
-Subject: [PATCH] fixes import dict
-
----
- src/storage/phrase_large_table2.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
-index 368d03d..34bb12d 100644
---- a/src/storage/phrase_large_table2.h
-+++ b/src/storage/phrase_large_table2.h
-@@ -133,7 +133,7 @@ static inline int reduce_tokens(const PhraseTokens tokens,
- }
-
- /* the following line will be removed in future after code are verified. */
-- assert(0 == num || 1 == num);
-+ assert(0 <= num && num <= 3);
-
- return num;
- }
---
-1.8.1.5
-
diff --git a/community/libpinyin/PKGBUILD b/community/libpinyin/PKGBUILD
index 5eebe2071..c911aad0c 100644
--- a/community/libpinyin/PKGBUILD
+++ b/community/libpinyin/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 88087 2013-04-11 09:30:02Z fyan $
+# $Id: PKGBUILD 89874 2013-05-04 04:07:02Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Yangtse <yangtsesu@gmail.com>
# Contributor: WU Jun <quark at lihdd dot net>
pkgname=libpinyin
-pkgver=0.9.0
+pkgver=0.9.91
pkgrel=1
pkgdesc="Library to deal with pinyin"
arch=('i686' 'x86_64')
@@ -13,14 +13,14 @@ license=('GPL')
depends=('db' 'glib2')
options=(!libtool)
source=("https://github.com/libpinyin/libpinyin/archive/${pkgver}.tar.gz"
- "http://downloads.sourceforge.net/libpinyin/model5.text.tar.gz")
-noextract=("model5.text.tar.gz")
+ "http://downloads.sourceforge.net/libpinyin/model6.text.tar.gz")
+noextract=("model6.text.tar.gz")
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- cp "${srcdir}/model5.text.tar.gz" "${srcdir}/${pkgname}-${pkgver}/data/"
- sed -i '/wget.*model5\.text\.tar\.gz/ d' ${srcdir}/${pkgname}-${pkgver}/data/Makefile.am
+ cp "${srcdir}/model6.text.tar.gz" "${srcdir}/${pkgname}-${pkgver}/data/"
+ sed -i '/wget.*model6\.text\.tar\.gz/ d' ${srcdir}/${pkgname}-${pkgver}/data/Makefile.am
aclocal && libtoolize --force && autoheader && automake -a && autoconf
./configure --prefix=/usr && make
@@ -30,5 +30,5 @@ package() {
cd "${srcdir}/libpinyin-$pkgver"
make DESTDIR="${pkgdir}" install
}
-md5sums=('e2237be88c6b9f1ed4f7c6e75a1738b4'
- 'a83812e2d3be5695be54f95d9d7a3aa0')
+sha512sums=('40263ff3b0e4ac6f68ed51d90b07c9431beec70d2b93ab3c0fec36a35b662380a022478bf15d81305a5e84c0eb95d662fed70c7213ff5c0d11a964b232bf1be2'
+ '8719d99b2efb22438ec067c046f8d45addb3e0d336e8d6ec4b8ed22370fe81366d19a34934bb059230f86e74c379acb62822ee3458850437880d531de8ff3e0e')