summaryrefslogtreecommitdiff
path: root/community/sunpinyin
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-06-11 00:05:27 -0700
committerroot <root@rshg054.dnsready.net>2013-06-11 00:05:27 -0700
commitbf794523287bafc14671f83b08f7b22bceadc4bc (patch)
tree05c7098cb5eb0c4195d7c2eb735379fb27a974ab /community/sunpinyin
parent3f6e6048fea3b61c4d0b2c1e7385bc76882007a4 (diff)
Tue Jun 11 00:05:26 PDT 2013
Diffstat (limited to 'community/sunpinyin')
-rw-r--r--community/sunpinyin/PKGBUILD32
1 files changed, 7 insertions, 25 deletions
diff --git a/community/sunpinyin/PKGBUILD b/community/sunpinyin/PKGBUILD
index 01800c6b1..1aa1a4606 100644
--- a/community/sunpinyin/PKGBUILD
+++ b/community/sunpinyin/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 81888 2013-01-03 05:18:11Z fyan $
+# $Id: PKGBUILD 92609 2013-06-10 02:29:07Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
pkgname=sunpinyin
-pkgver=2.0.3.20130103
-_commit=baf4da89ac04c3eb6ea3b8fb1a10f13bf23f3d87
+pkgver=2.0.3.20130307
+_commit=64e26d9ed1f617e59ff37c2efc0be97727c799a1
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Statistical Language Model based pinyin IME by Sun"
@@ -13,29 +13,11 @@ url="http://sunpinyin.googlecode.com"
depends=('sqlite' 'make' 'gcc-libs')
optdepends=('sunpinyin-data: Statistical language model data from open-gram project for sunpinyin')
makedepends=('git' 'scons' 'intltool')
-
-__gitroot=git://github.com/sunpinyin/sunpinyin.git
-__gitname=$pkgname
+source=("git://github.com/sunpinyin/sunpinyin.git#commit=$_commit")
+md5sums=("SKIP")
build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
-
- if [ -d $__gitname ] ; then
- cd $__gitname && git pull origin
- msg "The local files are updated."
- else
- git clone $__gitroot
- fi
-
- msg "GIT checkout done or server timeout"
- msg "Starting make..."
-
- rm -rf "$srcdir/$__gitname-build"
- git clone "$srcdir/$__gitname" "$srcdir/$__gitname-build"
- cd "$srcdir/$__gitname-build"
- git checkout "$_commit"
-
+ cd "$srcdir/$pkgname"
sed -i -e "1s|python|python2|" python/*.py python/importer/*.py
scons \
@@ -43,7 +25,7 @@ build() {
}
package() {
- cd "$srcdir/$__gitname-build"
+ cd "$srcdir/$pkgname"
scons \
--prefix=/usr \