[arch-commits] Commit in sunpinyin/trunk (PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Mon Jun 10 02:25:26 UTC 2013
Date: Monday, June 10, 2013 @ 04:25:25
Author: fyan
Revision: 92608
upgpkg: sunpinyin 2.0.3.20130307-1
Modified:
sunpinyin/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++------------------------
1 file changed, 6 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-06-10 02:09:45 UTC (rev 92607)
+++ PKGBUILD 2013-06-10 02:25:25 UTC (rev 92608)
@@ -3,8 +3,8 @@
# 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 @@
depends=('sqlite' 'make' 'gcc-libs')
optdepends=('sunpinyin-data: Statistical language model data from open-gram project for sunpinyin')
makedepends=('git' 'scons' 'intltool')
+source=("git://github.com/sunpinyin/sunpinyin.git#commit=$_commit")
+md5sums=("SKIP")
-__gitroot=git://github.com/sunpinyin/sunpinyin.git
-__gitname=$pkgname
-
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 @@
}
package() {
- cd "$srcdir/$__gitname-build"
+ cd "$srcdir/$pkgname"
scons \
--prefix=/usr \
More information about the arch-commits
mailing list