summaryrefslogtreecommitdiff
path: root/community/libpinyin/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libpinyin/PKGBUILD')
-rw-r--r--community/libpinyin/PKGBUILD22
1 files changed, 12 insertions, 10 deletions
diff --git a/community/libpinyin/PKGBUILD b/community/libpinyin/PKGBUILD
index 2648976e0..0ffcd5742 100644
--- a/community/libpinyin/PKGBUILD
+++ b/community/libpinyin/PKGBUILD
@@ -1,10 +1,11 @@
-# $Id: PKGBUILD 99874 2013-10-31 02:13:03Z allan $
+# $Id: PKGBUILD 100397 2013-11-03 12:30:24Z 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.93
+pkgver=0.9.94
+_modelver=7
pkgrel=1
pkgdesc="Library to deal with pinyin"
arch=('i686' 'x86_64')
@@ -12,22 +13,23 @@ url="https://github.com/libpinyin/libpinyin"
license=('GPL')
depends=('db' 'glib2')
source=("https://github.com/libpinyin/libpinyin/archive/${pkgver}.tar.gz"
- "http://downloads.sourceforge.net/libpinyin/model6.text.tar.gz")
-noextract=("model6.text.tar.gz")
+ "http://downloads.sourceforge.net/libpinyin/model${_modelver}.text.tar.gz")
+noextract=("model${_modelver}.text.tar.gz")
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${pkgname}-${pkgver}
- cp "${srcdir}/model6.text.tar.gz" "${srcdir}/${pkgname}-${pkgver}/data/"
- sed -i '/wget.*model6\.text\.tar\.gz/ d' ${srcdir}/${pkgname}-${pkgver}/data/Makefile.am
+ cp ../model${_modelver}.text.tar.gz data/
+ sed -i "/wget.*model${_modelver}\.text\.tar\.gz/ d" data/Makefile.am
aclocal && libtoolize --force && autoheader && automake -a && autoconf
./configure --prefix=/usr && make
}
package() {
- cd "${srcdir}/libpinyin-$pkgver"
+ cd ${pkgname}-$pkgver
make DESTDIR="${pkgdir}" install
}
-sha512sums=('7214c7913ed116a5557e89958d0d117e7a2781dcbbcc8b1c6713fb569ca121a5763e5cf1dedfdb4607638f773875c374112865d3a306876906a126954c4ef387'
- '8719d99b2efb22438ec067c046f8d45addb3e0d336e8d6ec4b8ed22370fe81366d19a34934bb059230f86e74c379acb62822ee3458850437880d531de8ff3e0e')
+
+sha512sums=('733083a8ed1dc0d230c8830e67c4d23b28ecf4c2b4adf386aee5f1e3cd9849363951c60720d5ae5fe9c075b4dbdda88969473c19bb1a8c8187cbc21e35445108'
+ '74a56a23cdca24124037f688ed85a921089155a1b9a0b61e646f805b2bb698c56682c5d6a47ff86657c8b131a831dbee9d5cc5165d4c1f235b77fcd5b2e480ad')