Date: Monday, June 10, 2013 @ 09:05:05 Author: fyan Revision: 92621 upgpkg: ibus-sunpinyin 2.0.3.20130307-1
Modified: ibus-sunpinyin/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-06-10 06:43:32 UTC (rev 92620) +++ PKGBUILD 2013-06-10 07:05:05 UTC (rev 92621) @@ -3,39 +3,21 @@ # Contributor: Daniel J Griffiths <[email protected]> pkgname=ibus-sunpinyin -pkgver=2.0.3.20130103 -_commit=baf4da89ac04c3eb6ea3b8fb1a10f13bf23f3d87 +_pkgname=sunpinyin +pkgver=2.0.3.20130307 +_commit=64e26d9ed1f617e59ff37c2efc0be97727c799a1 pkgrel=1 -pkgdesc="IBus Wrapper for sunpinyin." +pkgdesc="IBus Wrapper for sunpinyin" arch=('i686' 'x86_64') url="http://sunpinyin.googlecode.com" license=('LGPL') depends=('sunpinyin>2.0.3' 'sunpinyin-data' 'ibus') makedepends=('git' 'scons') +source=("git://github.com/sunpinyin/sunpinyin.git#commit=$_commit") +md5sums=("SKIP") -__gitroot=git://github.com/sunpinyin/sunpinyin.git -__gitname=sunpinyin - 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/$__gitname-build/wrapper/ibus" + cd "$srcdir/$_pkgname/wrapper/ibus" sed -i -e "s|python|python2|" setup/ibus-setup-sunpinyin.in scons \ @@ -43,7 +25,7 @@ } package() { - cd "$srcdir/$__gitname-build/wrapper/ibus" + cd "$srcdir/$_pkgname/wrapper/ibus" scons \ --prefix=/usr \
