[arch-commits] Commit in sunpinyin/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Sep 11 02:11:14 UTC 2015


    Date: Friday, September 11, 2015 @ 04:11:13
  Author: fyan
Revision: 139912

upgpkg: sunpinyin 2.0.3.20150706-1

Modified:
  sunpinyin/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-11 02:11:10 UTC (rev 139911)
+++ PKGBUILD	2015-09-11 02:11:13 UTC (rev 139912)
@@ -3,8 +3,8 @@
 # Contributor: Thomas Dziedzic < gostrc at gmail >
 
 pkgname=sunpinyin
-pkgver=2.0.3.20140820
-_commit=9c165f917b05bd929cc6e8b02e3db1af08ac75fc
+pkgver=2.0.3.20150706
+_commit=cf1810220bf3d3f5a8b990b0a9d3e9df21b1942c
 pkgrel=1
 arch=('i686' 'x86_64')
 pkgdesc="Statistical Language Model based pinyin IME by Sun"
@@ -16,10 +16,13 @@
 source=("git://github.com/sunpinyin/sunpinyin.git#commit=$_commit")
 md5sums=("SKIP")
 
-build() {
+prepare() {
   cd "$srcdir/$pkgname"
   sed -i -e "1s|python|python2|" python/*.py python/importer/*.py
+}
 
+build() {
+  cd "$srcdir/$pkgname"
   scons \
     --prefix=/usr
 }
@@ -26,10 +29,8 @@
 
 package() {
   cd "$srcdir/$pkgname"
-
   scons \
     --prefix=/usr \
     --install-sandbox="$pkgdir" \
     install
 }
-



More information about the arch-commits mailing list